Module: wine Branch: master Commit: dfea2ab6f49bf986482c9784c4788b86323132f4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dfea2ab6f49bf986482c9784c4...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Sun Oct 16 21:55:29 2011 +0200
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 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;