[PATCH 4/5] wined3d: Check the return value of wglDeleteContext() in context_destroy_gl_resources().
Henri Verbeet
hverbeet at codeweavers.com
Fri Aug 7 01:51:21 CDT 2009
---
dlls/wined3d/context.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index cd791c8..aa1518e 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -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)
--
1.6.0.6
More information about the wine-patches
mailing list