From: Ken Thomases Subject: [PATCH 4/8] Revert "wined3d: Don't call GetPixelFormat() to set a flag that's already set." Message-Id: <894CEC51-BF70-4F21-85EF-4CCD8AB6F397@codeweavers.com> Date: Sun, 14 Sep 2014 19:47:15 -0500 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; } }