diff --git a/gfx/drivers_context/x_ctx.c b/gfx/drivers_context/x_ctx.c index e94502ca56..58132a7fb7 100644 --- a/gfx/drivers_context/x_ctx.c +++ b/gfx/drivers_context/x_ctx.c @@ -389,6 +389,9 @@ static bool gfx_ctx_x_set_resize(void *data, #ifdef HAVE_VULKAN { gfx_ctx_x_data_t *x = (gfx_ctx_x_data_t*)data; + + /* FIXME/TODO - threading error here */ + if (!vulkan_create_swapchain(&x->vk, width, height, x->g_interval)) { RARCH_ERR("[X/Vulkan]: Failed to update swapchain.\n"); @@ -801,6 +804,8 @@ static bool gfx_ctx_x_set_video_mode(void *data, x11_check_window(x, &quit, &resize, &width, &height, shutdown); + /* FIXME/TODO - threading error here */ + /* Use XCB surface since it's the most supported WSI. * We can obtain the XCB connection directly from X11. */ if (!vulkan_surface_create(&x->vk, VULKAN_WSI_XCB,