From bd10e5bdc317828fa963fa894ffd8585d77b4cfd Mon Sep 17 00:00:00 2001 From: Grant Date: Mon, 21 Jun 2021 21:12:26 +0100 Subject: [PATCH] fix x11 threaded videoc segfault --- gfx/drivers_context/x_ctx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/drivers_context/x_ctx.c b/gfx/drivers_context/x_ctx.c index f70bbc5332..fb9b917281 100644 --- a/gfx/drivers_context/x_ctx.c +++ b/gfx/drivers_context/x_ctx.c @@ -219,12 +219,13 @@ static void gfx_ctx_x_destroy_resources(gfx_ctx_x_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; } +*/ /* Why are you closing X display here no vaild context can be created after this point */ } #if defined(HAVE_OPENGL) || defined(HAVE_OPENGL1) || defined(HAVE_OPENGL_CORE)