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