Matteo Bruni : winex11.drv: Take care of the destroyed drawable in wglFlush /wglFinish too.

Alexandre Julliard julliard at winehq.org
Thu Mar 31 12:43:44 CDT 2011


Module: wine
Branch: master
Commit: 1e0075cd61c908b3cf6523c132fb16b1a8ee58ae
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1e0075cd61c908b3cf6523c132fb16b1a8ee58ae

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Mon Mar  7 22:39:34 2011 +0100

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;




More information about the wine-cvs mailing list