wgl: Don't call ExtEscape if we don't have a GL context.

This commit is contained in:
Alexandre Julliard 2008-05-14 12:46:25 +02:00
parent d869bd6265
commit be7b8be8b8
1 changed files with 2 additions and 2 deletions

View File

@ -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 );
}
/**