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.
This commit is contained in:
Henri Verbeet 2011-10-16 21:55:29 +02:00 committed by Alexandre Julliard
parent aba1ed78da
commit dfea2ab6f4
1 changed files with 0 additions and 1 deletions

View File

@ -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;