Commit be7b8be8 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent d869bd62
......@@ -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 );
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment