From dfea2ab6f49bf986482c9784c4788b86323132f4 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sun, 16 Oct 2011 21:55:29 +0200 Subject: [PATCH] wined3d: Don't bother updating the context's window in context_destroy_gl_resources(). 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 file changed, 1 deletion(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 9d15176b786..3353434a7b4 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;