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:
parent
aba1ed78da
commit
dfea2ab6f4
|
@ -869,7 +869,6 @@ static void context_destroy_gl_resources(struct wined3d_context *context)
|
||||||
restore_ctx = pwglGetCurrentContext();
|
restore_ctx = pwglGetCurrentContext();
|
||||||
restore_dc = pwglGetCurrentDC();
|
restore_dc = pwglGetCurrentDC();
|
||||||
|
|
||||||
context_update_window(context);
|
|
||||||
if (context->valid && restore_ctx != context->glCtx)
|
if (context->valid && restore_ctx != context->glCtx)
|
||||||
context_set_gl_context(context);
|
context_set_gl_context(context);
|
||||||
else restore_ctx = NULL;
|
else restore_ctx = NULL;
|
||||||
|
|
Loading…
Reference in New Issue