Skip to content
Permalink
Browse files

metal and moltenvk: fix highdpi.

  • Loading branch information
slime73 committed Jan 3, 2018
1 parent ef1014a commit f9cd765020586e0574e88ccddf0f0066ca6844de

File 1 of 2 in f9cd765

@@ -563,9 +563,6 @@ - (void)dealloc
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;
}

0 comments on commit f9cd765

Please sign in to comment.