Alexandre Julliard : wgl: Don't call ExtEscape if we don' t have a GL context.
Alexandre Julliard
julliard at winehq.org
Wed May 14 06:43:45 CDT 2008
Module: wine
Branch: master
Commit: be7b8be8b8f6d3304c8d71047c2467945f5e2635
URL: http://source.winehq.org/git/wine.git/?a=commit;h=be7b8be8b8f6d3304c8d71047c2467945f5e2635
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed May 14 12:46:25 2008 +0200
wgl: Don't call ExtEscape if we don't have a GL context.
---
dlls/winex11.drv/opengl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 04c2f2a..836a56a 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -2136,7 +2136,7 @@ static void WINAPI X11DRV_wglFinish(void)
sync_context(ctx);
pglFinish();
wine_tsx11_unlock();
- ExtEscape(ctx->hdc, X11DRV_ESCAPE, sizeof(code), (LPSTR)&code, 0, NULL );
+ if (ctx) ExtEscape(ctx->hdc, X11DRV_ESCAPE, sizeof(code), (LPSTR)&code, 0, NULL );
}
static void WINAPI X11DRV_wglFlush(void)
@@ -2148,7 +2148,7 @@ static void WINAPI X11DRV_wglFlush(void)
sync_context(ctx);
pglFlush();
wine_tsx11_unlock();
- ExtEscape(ctx->hdc, X11DRV_ESCAPE, sizeof(code), (LPSTR)&code, 0, NULL );
+ if (ctx) ExtEscape(ctx->hdc, X11DRV_ESCAPE, sizeof(code), (LPSTR)&code, 0, NULL );
}
/**
More information about the wine-cvs
mailing list