We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6603fe2 commit acc4040Copy full SHA for acc4040
gfx/drivers/vulkan.c
@@ -4264,8 +4264,14 @@ static bool vulkan_alive(void *data)
4264
bool quit = false;
4265
bool resize = false;
4266
vk_t *vk = (vk_t*)data;
4267
- unsigned temp_width = vk->video_width;
4268
- unsigned temp_height = vk->video_height;
+ unsigned temp_width;
+ unsigned temp_height;
4269
+
4270
+ if (!vk)
4271
+ return false;
4272
4273
+ temp_width = vk->video_width;
4274
+ temp_height = vk->video_height;
4275
4276
vk->ctx_driver->check_window(vk->ctx_data,
4277
&quit, &resize, &temp_width, &temp_height);
0 commit comments