From fbc4738e79dee3e345f88d33cafed653b752dfb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Thu, 3 Nov 2016 08:59:56 -0300 Subject: [PATCH] (x_ctx.c) Add workaround for i915 bug On certain Intel systems using DRI2, xorg fails to destroy the old window when toggling between windowed fullscreen and windowed mode. A fix at the driver level is being worked on by the i915 developers: https://bugs.freedesktop.org/show_bug.cgi?id=93844 Thanks to https://github.com/diegoviola for investigating the issue. This fixes #3752 --- gfx/drivers_context/x_ctx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/drivers_context/x_ctx.c b/gfx/drivers_context/x_ctx.c index e432dfb5ea..535fc94fa6 100644 --- a/gfx/drivers_context/x_ctx.c +++ b/gfx/drivers_context/x_ctx.c @@ -107,6 +107,7 @@ static void gfx_ctx_x_destroy_resources(gfx_ctx_x_data_t *x) #ifdef HAVE_OPENGL if (x->g_ctx) { + glXSwapBuffers(g_x11_dpy, x->g_glx_win); glFinish(); glXMakeContextCurrent(g_x11_dpy, None, None, NULL);