[Bf-blender-cvs] [975e9020cbc] temp-ghost-vulkan: Create VKBackend when selecting vulkan from the command line.

Jeroen Bakker noreply at git.blender.org
Tue Nov 1 14:52:58 CET 2022


Commit: 975e9020cbc1a3908d26c17914c5c2e3f3c48afb
Author: Jeroen Bakker
Date:   Tue Nov 1 14:52:33 2022 +0100
Branches: temp-ghost-vulkan
https://developer.blender.org/rB975e9020cbc1a3908d26c17914c5c2e3f3c48afb

Create VKBackend when selecting vulkan from the command line.

===================================================================

M	source/blender/windowmanager/intern/wm_window.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 265aa08a6b1..f5dc18bb16e 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -1626,6 +1626,9 @@ GHOST_TDrawingContextType wm_ghost_drawing_context_type(const eGPUBackendType gp
     case GPU_BACKEND_OPENGL:
       return GHOST_kDrawingContextTypeOpenGL;
     case GPU_BACKEND_VULKAN:
+#ifdef WITH_VULKAN_BACKEND
+      return GHOST_kDrawingContextTypeVulkan;
+#endif
       BLI_assert_unreachable();
       return GHOST_kDrawingContextTypeNone;
     case GPU_BACKEND_METAL:



More information about the Bf-blender-cvs mailing list