display(iOS): fix external display resolution issues

Fixes #6040
This commit is contained in:
osy
2026-01-19 10:54:43 -08:00
parent 9abb86bc9e
commit b34675ec0e
@@ -80,6 +80,7 @@ static const NSInteger kResizeTimeoutSecs = 5;
// Set the view to use the default device
self.mtkView.frame = self.view.bounds;
self.mtkView.drawableSize = self.view.bounds.size;
self.mtkView.device = MTLCreateSystemDefaultDevice();
if (!self.mtkView.device) {
UTMLog(@"Metal is not supported on this device");