This commit is contained in:
parent
5d0deebba4
commit
ad5aa54166
@ -413,7 +413,7 @@ static void ImGui_ImplMetal_CreateWindow(ImGuiViewport* viewport)
|
|||||||
CAMetalLayer* layer = [CAMetalLayer layer];
|
CAMetalLayer* layer = [CAMetalLayer layer];
|
||||||
layer.device = device;
|
layer.device = device;
|
||||||
layer.framebufferOnly = YES;
|
layer.framebufferOnly = YES;
|
||||||
layer.pixelFormat = MTLPixelFormatBGRA8Unorm;
|
layer.pixelFormat = bd->SharedMetalContext.framebufferDescriptor.colorPixelFormat;
|
||||||
#if TARGET_OS_OSX
|
#if TARGET_OS_OSX
|
||||||
NSWindow* window = (__bridge NSWindow*)handle;
|
NSWindow* window = (__bridge NSWindow*)handle;
|
||||||
NSView* view = window.contentView;
|
NSView* view = window.contentView;
|
||||||
|
Loading…
Reference in New Issue
Block a user