diff --git a/app/mac/GameViewController.mm b/app/mac/GameViewController.mm index dda9fd549..617851455 100644 --- a/app/mac/GameViewController.mm +++ b/app/mac/GameViewController.mm @@ -13,8 +13,9 @@ - (void)viewDidLoad [super viewDidLoad]; _view = (MTKView *)self.view; - _view.device = MTLCreateSystemDefaultDevice(); + _view.colorPixelFormat = MTLPixelFormatBGRA8Unorm; + _view.depthStencilPixelFormat = MTLPixelFormatDepth32Float; if(!_view.device) { @@ -24,7 +25,6 @@ - (void)viewDidLoad } _renderer = [[Renderer alloc] initWithMetalKitView:_view]; - [_renderer mtkView:_view drawableSizeWillChange:_view.bounds.size]; _view.delegate = _renderer;