mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-02 14:42:32 +00:00
- avoid Vulkan initialization when it's disabled in Cocoa backend
This commit is contained in:
parent
83de8ae5a0
commit
97fc3aa9a6
1 changed files with 12 additions and 12 deletions
|
@ -364,11 +364,6 @@ public:
|
||||||
vulkanView.layer.backgroundColor = NSColor.blackColor.CGColor;
|
vulkanView.layer.backgroundColor = NSColor.blackColor.CGColor;
|
||||||
|
|
||||||
[ms_window setContentView:vulkanView];
|
[ms_window setContentView:vulkanView];
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetupOpenGLView(ms_window);
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -381,6 +376,11 @@ public:
|
||||||
|
|
||||||
SetupOpenGLView(ms_window);
|
SetupOpenGLView(ms_window);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetupOpenGLView(ms_window);
|
||||||
|
}
|
||||||
|
|
||||||
if (fb == nullptr)
|
if (fb == nullptr)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue