From 1e0075cd61c908b3cf6523c132fb16b1a8ee58ae Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Mon, 7 Mar 2011 22:39:34 +0100 Subject: [PATCH] winex11.drv: Take care of the destroyed drawable in wglFlush/wglFinish too. --- dlls/winex11.drv/opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index a7ec8c82844..feead5f3b55 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -2271,7 +2271,7 @@ void flush_gl_drawable(X11DRV_PDEVICE *physDev) { int w, h; - if (!physDev->gl_copy) + if (!physDev->gl_copy || !physDev->current_pf) return; w = physDev->dc_rect.right - physDev->dc_rect.left;