[5/6] winex11.drv: Take care of the destroyed drawable in wglFlush/wglFinish too.

Matteo Bruni matteo.mystral at gmail.com
Wed Mar 30 17:19:37 CDT 2011


-------------- next part --------------
From 4f7cac55928883af83ef246af13a9fb065f761cb Mon Sep 17 00:00:00 2001
From: Matteo Bruni <mbruni at codeweavers.com>
Date: Mon, 7 Mar 2011 22:39:34 +0100
Subject: winex11.drv: Take care of the destroyed drawable in wglFlush/wglFinish too.

---
 dlls/winex11.drv/opengl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index a7ec8c8..feead5f 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;
-- 
1.7.3.4


More information about the wine-patches mailing list