[PATCH 1/5] wined3d: Don't bother updating the context's window in context_destroy_gl_resources().
Henri Verbeet
hverbeet at codeweavers.com
Sun Oct 16 14:55:29 CDT 2011
context_update_window() accesses the swapchain, which may not exist if this is
a destroyed context, and we don't do anything that needs displaying here
anyway.
---
dlls/wined3d/context.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 9d15176..3353434 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -869,7 +869,6 @@ static void context_destroy_gl_resources(struct wined3d_context *context)
restore_ctx = pwglGetCurrentContext();
restore_dc = pwglGetCurrentDC();
- context_update_window(context);
if (context->valid && restore_ctx != context->glCtx)
context_set_gl_context(context);
else restore_ctx = NULL;
--
1.7.3.4
More information about the wine-patches
mailing list