More metal changes

This commit is contained in:
Dynamitos committed 2024-11-02 22:19:08 +01:00
1 parent 32d3bd8ad8
commit 3c9465de49
10 files changed
+50 -30

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ Window::Window(PGraphics graphics, const WindowCreateInfo& createInfo) : graphic
metalLayer.drawableSize = CGSizeMake(createInfo.width, createInfo.height);
metalWindow.contentView.layer = metalLayer;
metalWindow.contentView.wantsLayer = YES;
framebufferFormat = Gfx::SE_FORMAT_R8G8B8A8_UNORM;
framebufferFormat = Gfx::SE_FORMAT_B8G8R8A8_UNORM;
drawable = (__bridge CA::MetalDrawable*)[metalLayer nextDrawable];
createBackBuffer();