Fix: Incorrect test for WITH_GHOST_X11

This commit is contained in:
Jeroen Bakker
2025-09-05 09:17:58 +02:00
parent ad83a1017f
commit aa7664eacc

View File

@@ -1334,7 +1334,7 @@ GHOST_TSuccess GHOST_ContextVK::initializeDrawingContext()
instance_vk.extensions.enable(native_surface_extension_name);
/* X11 doesn't use the correct swapchain offset, flipping can squash the first frames. */
const bool use_vk_ext_swapchain_maintenance1 =
#if WITH_GHOST_X11
#ifdef WITH_GHOST_X11
platform_ != GHOST_kVulkanPlatformX11 &&
#endif
instance_vk.extensions.is_supported(VK_EXT_SURFACE_MAINTENANCE_1_EXTENSION_NAME) &&