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

This commit is contained in:
Ken Thomases 2014-03-23 22:45:54 -05:00 committed by Alexandre Julliard
parent 90d7f3e03f
commit ffb357b717

View file

@ -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;
}
}