mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed white flash on startup with Metal-based view
This commit is contained in:
parent
250e4ed622
commit
83de8ae5a0
1 changed files with 2 additions and 6 deletions
|
@ -237,11 +237,6 @@ namespace
|
|||
m_cursor = cursor;
|
||||
}
|
||||
|
||||
-(BOOL) wantsUpdateLayer
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
+(Class) layerClass
|
||||
{
|
||||
return NSClassFromString(@"CAMetalLayer");
|
||||
|
@ -365,7 +360,8 @@ public:
|
|||
const NSRect contentRect = [ms_window contentRectForFrameRect:[ms_window frame]];
|
||||
|
||||
NSView* vulkanView = [[VulkanCocoaView alloc] initWithFrame:contentRect];
|
||||
[vulkanView setWantsLayer:YES];
|
||||
vulkanView.wantsLayer = YES;
|
||||
vulkanView.layer.backgroundColor = NSColor.blackColor.CGColor;
|
||||
|
||||
[ms_window setContentView:vulkanView];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue