mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-24 23:10:50 +02:00
wgl: Only reset GL context on the dummy window.
This changes the WGL context destruction code to only reset the GL context for the dummy window, since doing it on <nothing> is an invalid operation.
This commit is contained in:
parent
ca35e09ece
commit
a9a22649e2
1 changed files with 2 additions and 4 deletions
|
|
@ -129,13 +129,11 @@ _wgl_destroy (void *abstract_ctx)
|
|||
{
|
||||
cairo_wgl_context_t *ctx = abstract_ctx;
|
||||
|
||||
if (ctx->dummy_dc != 0) {
|
||||
if (ctx->dummy_dc != 0) {
|
||||
wglMakeCurrent (ctx->dummy_dc, 0);
|
||||
ReleaseDC (ctx->dummy_wnd, ctx->dummy_dc);
|
||||
DestroyWindow (ctx->dummy_wnd);
|
||||
CloseHandle (ctx->dummy_wnd);
|
||||
}
|
||||
|
||||
wglMakeCurrent (0, 0);
|
||||
}
|
||||
|
||||
static cairo_status_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue