[Bf-blender-cvs] [f7d7a5aad73] tmp-vulkan: Cleanup: Silence compilation warning.
Jeroen Bakker
noreply at git.blender.org
Mon Jun 21 15:13:31 CEST 2021
Commit: f7d7a5aad736f3e699d762ad02b1becf23ba91fd
Author: Jeroen Bakker
Date: Mon Jun 21 15:13:09 2021 +0200
Branches: tmp-vulkan
https://developer.blender.org/rBf7d7a5aad736f3e699d762ad02b1becf23ba91fd
Cleanup: Silence compilation warning.
===================================================================
M source/blender/gpu/intern/gpu_context.cc
===================================================================
diff --git a/source/blender/gpu/intern/gpu_context.cc b/source/blender/gpu/intern/gpu_context.cc
index 21938595219..91a54b8a173 100644
--- a/source/blender/gpu/intern/gpu_context.cc
+++ b/source/blender/gpu/intern/gpu_context.cc
@@ -182,12 +182,12 @@ void GPU_backend_init(eGPUBackendType backend_type)
BLI_assert(g_backend == nullptr);
switch (backend_type) {
-#if WITH_OPENGL_BACKEND
+#ifdef WITH_OPENGL_BACKEND
case GPU_BACKEND_OPENGL:
g_backend = new GLBackend;
break;
#endif
-#if WITH_VULKAN
+#ifdef WITH_VULKAN
case GPU_BACKEND_VULKAN:
g_backend = new VKBackend;
break;
More information about the Bf-blender-cvs
mailing list