From cf1d24cb38a4c68559378ed0ba819d635f45f723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 4 Mar 2021 09:57:28 -0800 Subject: [PATCH] Fixed OSX build. --- src/renderer_vk.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer_vk.cpp b/src/renderer_vk.cpp index cb6090f66..a874d8876 100644 --- a/src/renderer_vk.cpp +++ b/src/renderer_vk.cpp @@ -1028,7 +1028,7 @@ VK_IMPORT_DEVICE { } - VkResult createSurface() + VkResult createSurface(const Resolution& _resolution) { VkResult result = VK_SUCCESS; @@ -1099,7 +1099,7 @@ VK_IMPORT_DEVICE NSView* contentView = (NSView*)window.contentView; CAMetalLayer* layer = [CAMetalLayer layer]; - if (_init.resolution.reset & BGFX_RESET_HIDPI) + if (_resolution.reset & BGFX_RESET_HIDPI) { layer.contentsScale = [window backingScaleFactor]; } @@ -2188,7 +2188,7 @@ VK_IMPORT_DEVICE errorState = ErrorState::CommandQueueCreated; - result = createSurface(); + result = createSurface(_init.resolution); if (VK_SUCCESS != result) {