Merge pull request #12550 from grant2258/fix_x11

fix x11 threaded videoc segfault
This commit is contained in:
Autechre 2021-06-22 18:24:32 +02:00 committed by GitHub
commit 8ec39ca7ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)