Skip to content

Commit

Permalink
Fix iOS app running natively on Mac with Apple Silicon, thanks to @an…
Browse files Browse the repository at this point in the history
…drejnau for solution (closed #101)
  • Loading branch information
egorodet committed Sep 8, 2022
1 parent a0b7225 commit eb0e498
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ - (void) commonInit
m_metal_layer = static_cast<CAMetalLayer*>(self.layer);
self.layer.delegate = self;
self.metalLayer.pixelFormat = self.pixelFormat;
self.metalLayer.device = MTLCreateSystemDefaultDevice();
}

- (UIScreen*) currentScreen
Expand Down

0 comments on commit eb0e498

Please sign in to comment.