wined3d: Don't call GetPixelFormat() to set a flag that's already set.
This commit is contained in:
parent
90d7f3e03f
commit
ffb357b717
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue