Commit 41729ca9 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Check the return value of wglDeleteContext() in context_destroy_gl_resources().

parent 7ed116da
......@@ -705,7 +705,11 @@ static void context_destroy_gl_resources(struct wined3d_context *context)
ReleaseDC(context->win_handle, context->hdc);
}
pwglDeleteContext(context->glCtx);
if (!pwglDeleteContext(context->glCtx))
{
DWORD err = GetLastError();
ERR("wglDeleteContext(%p) failed, last error %#x.\n", context->glCtx, err);
}
}
DWORD context_get_tls_idx(void)
......
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