From 84b7c245fd8cc43f5696c244156efe4cbd31572c Mon Sep 17 00:00:00 2001
From: Ken Thomases <ken@codeweavers.com>
Date: Sun, 14 Sep 2014 19:47:15 -0500
Subject: Revert "wined3d: Don't call GetPixelFormat() to set a flag that's
 already set."

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 d5ee29b..8109a6f 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1175,7 +1175,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.1.0

