Henri Verbeet : wined3d: Check the return value of wglDeleteContext() in context_destroy_gl_resources().
Alexandre Julliard
julliard at winehq.org
Fri Aug 7 08:49:24 CDT 2009
Module: wine
Branch: master
Commit: 41729ca91919d2992ab3b3c6fa25da993b2ff9a8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=41729ca91919d2992ab3b3c6fa25da993b2ff9a8
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Aug 7 08:51:21 2009 +0200
wined3d: Check the return value of wglDeleteContext() in context_destroy_gl_resources().
---
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)
More information about the wine-cvs
mailing list