From 8d9819e07f032dd11ef1441e9e8227dc7c314778 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 28 Feb 2023 05:34:35 +0100 Subject: [PATCH] Fix: Not all vulkan code-paths where compiled. Fix issue where old `WITH_VULKAN` was still used. It should have used `WITH_VULKAN_BACKEND`. --- intern/ghost/intern/GHOST_C-api.cpp | 2 +- intern/ghost/intern/GHOST_WindowX11.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/ghost/intern/GHOST_C-api.cpp b/intern/ghost/intern/GHOST_C-api.cpp index 986f88205c7..4da9392d4d0 100644 --- a/intern/ghost/intern/GHOST_C-api.cpp +++ b/intern/ghost/intern/GHOST_C-api.cpp @@ -1228,4 +1228,4 @@ void GHOST_GetVulkanBackbuffer(GHOST_WindowHandle windowhandle, window->getVulkanBackbuffer(image, framebuffer, render_pass, extent, fb_id); } -#endif /* WITH_VULKAN */ +#endif /* WITH_VULKAN_BACKEND */ diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index 393944eac97..3e93fdc0b08 100644 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -1226,7 +1226,7 @@ static GHOST_Context *create_glx_context(Window window, GHOST_Context *GHOST_WindowX11::newDrawingContext(GHOST_TDrawingContextType type) { -#if defined(WITH_VULKAN) +#if defined(WITH_VULKAN_BACKEND) if (type == GHOST_kDrawingContextTypeVulkan) { GHOST_Context *context = new GHOST_ContextVK(m_wantStereoVisual, GHOST_kVulkanPlatformX11,