From 856a2a9f87de88862f143ab4e57bf4225fc35cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Mon, 11 Aug 2025 12:39:32 +0200 Subject: [PATCH] Fix: GHOST: Build error Caused by aafef977fb5062759c6ac710f15d41f27511c2c5 --- intern/ghost/intern/GHOST_ContextVK.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/intern/ghost/intern/GHOST_ContextVK.cc b/intern/ghost/intern/GHOST_ContextVK.cc index 30e0e20efb6..f02a38e3ed8 100644 --- a/intern/ghost/intern/GHOST_ContextVK.cc +++ b/intern/ghost/intern/GHOST_ContextVK.cc @@ -841,7 +841,8 @@ static void requireExtension(const vector &extensions_ava } } -static GHOST_TSuccess selectPresentMode(VkPhysicalDevice device, +static GHOST_TSuccess selectPresentMode(const char *ghost_vsync_string, + VkPhysicalDevice device, VkSurfaceKHR surface, VkPresentModeKHR *r_presentMode) { @@ -850,7 +851,6 @@ static GHOST_TSuccess selectPresentMode(VkPhysicalDevice device, vector presents(present_count); vkGetPhysicalDeviceSurfacePresentModesKHR(device, surface, &present_count, presents.data()); - const char *ghost_vsync_string = getEnvVarVsyncString(); if (ghost_vsync_string) { bool vsync_off = atoi(ghost_vsync_string) == 0; if (vsync_off) { @@ -967,7 +967,7 @@ GHOST_TSuccess GHOST_ContextVK::recreateSwapchain(bool use_hdr_swapchain) } VkPresentModeKHR present_mode; - if (!selectPresentMode(physical_device, m_surface, &present_mode)) { + if (!selectPresentMode(getEnvVarVsyncString(), physical_device, m_surface, &present_mode)) { return GHOST_kFailure; }