metal and moltenvk: fix highdpi.
This commit is contained in:
parent
ae3088d32b
commit
a879f3978e
2 changed files with 3 additions and 7 deletions
|
@ -563,9 +563,6 @@ static int
|
|||
METAL_GetOutputSize(SDL_Renderer * renderer, int *w, int *h)
|
||||
{ @autoreleasepool {
|
||||
METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
|
||||
// !!! FIXME: We shouldn't need ActivateRenderer, but drawableSize is 0
|
||||
// in the first frame without it.
|
||||
METAL_ActivateRenderer(renderer);
|
||||
if (w) {
|
||||
*w = (int)data.mtllayer.drawableSize.width;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue