Enable using MoltenVK on macOS (#2846)

Co-authored-by: Adrian Cojocaru <adrian.cojocaru92@yahoo.com>
This commit is contained in:
Bart Louwers
2024-10-04 11:37:04 +02:00
committed by GitHub
parent 56f6c5f5cf
commit 8efc30a7cc
4 changed files with 44 additions and 7 deletions

View File

@@ -215,7 +215,7 @@ GLFWView::GLFWView(bool fullscreen_,
bool capFrameRate = !benchmark; // disable VSync in benchmark mode
backend = GLFWBackend::Create(window, capFrameRate);
#ifdef __APPLE__
#if defined(__APPLE__) && !defined(MLN_RENDER_BACKEND_VULKAN)
int fbW, fbH;
glfwGetFramebufferSize(window, &fbW, &fbH);
backend->setSize({static_cast<uint32_t>(fbW), static_cast<uint32_t>(fbH)});