[PATCH 4/8] Revert "wined3d: Don't call GetPixelFormat() to set a flag that's already set."

Ken Thomases ken at codeweavers.com
Mon Nov 2 14:37:46 CST 2015


This reverts commit ffb357b717680b52917f280b3716da7b387f4af2.
---
 dlls/wined3d/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index eb11fcf..1480058 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1204,7 +1204,7 @@ static void context_enter(struct wined3d_context *context)
             context->restore_dc = wglGetCurrentDC();
             context->needs_set = 1;
         }
-        else if (!context->needs_set && context->pixel_format != GetPixelFormat(context->hdc))
+        else if (context->pixel_format != GetPixelFormat(context->hdc))
             context->needs_set = 1;
     }
 }
-- 
2.6.0




More information about the wine-patches mailing list