Fix: Not all vulkan code-paths where compiled.

Fix issue where old `WITH_VULKAN` was still used. It should
have used `WITH_VULKAN_BACKEND`.
This commit is contained in:
Jeroen Bakker
2023-02-28 05:34:35 +01:00
parent 8859b1cd3c
commit 8d9819e07f
2 changed files with 2 additions and 2 deletions

View File

@@ -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 */

View File

@@ -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,