diff --git a/gfx/drivers_context/x_vk_ctx.c b/gfx/drivers_context/x_vk_ctx.c index b158eec751..b6c33bd482 100644 --- a/gfx/drivers_context/x_vk_ctx.c +++ b/gfx/drivers_context/x_vk_ctx.c @@ -111,12 +111,6 @@ static void gfx_ctx_x_vk_destroy_resources(gfx_ctx_x_vk_data_t *x) x11_exit_fullscreen(g_x11_dpy); x->should_reset_mode = false; } - - if (!video_driver_is_video_cache_context()) - { - XCloseDisplay(g_x11_dpy); - g_x11_dpy = NULL; - } } }