Commit ffb357b7 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

wined3d: Don't call GetPixelFormat() to set a flag that's already set.

parent 90d7f3e0
......@@ -1116,7 +1116,7 @@ static void context_enter(struct wined3d_context *context)
context->restore_dc = wglGetCurrentDC();
context->needs_set = 1;
}
else if (context->pixel_format != GetPixelFormat(context->hdc))
else if (!context->needs_set && context->pixel_format != GetPixelFormat(context->hdc))
context->needs_set = 1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment