Ken Thomases : wined3d: Make context_update_window() just mark the GL context as needing to be set rather than setting it.

Alexandre Julliard julliard at winehq.org
Sat Feb 22 09:50:04 CST 2014


Module: wine
Branch: master
Commit: b8569d2f3006bbb14b973eca15a608f9575a0ebd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b8569d2f3006bbb14b973eca15a608f9575a0ebd

Author: Ken Thomases <ken at codeweavers.com>
Date:   Wed Feb 19 16:14:24 2014 -0600

wined3d: Make context_update_window() just mark the GL context as needing to be set rather than setting it.

---

 dlls/wined3d/context.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 9670d6e..13eb415 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -852,6 +852,7 @@ static void context_update_window(struct wined3d_context *context)
         context->valid = 1;
 
     context->win_handle = context->swapchain->win_handle;
+    context->needs_set = 1;
 
     if (!(context->hdc = GetDC(context->win_handle)))
     {
@@ -859,8 +860,6 @@ static void context_update_window(struct wined3d_context *context)
         goto err;
     }
 
-    context_set_gl_context(context);
-
     return;
 
 err:




More information about the wine-cvs mailing list