Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-10-19 18:19:18 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-10-19 18:19:18 +0300
commit96c085d4af151f0ff20f23f1fe0428e2d8fbdee2 (patch)
tree1bbf924462804f345ec6cb9303fad4919fe38000 /source/blender/windowmanager
parent3d878cd0df31ae89e1fc2a99b3f90e12c6db9c55 (diff)
Cleanup: WM: Fix missing enumerator case in switch
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 6b925b23dcb..ce573a9285b 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -1625,13 +1625,14 @@ GHOST_TDrawingContextType wm_ghost_drawing_context_type(const eGPUBackendType gp
case GPU_BACKEND_ANY:
case GPU_BACKEND_OPENGL:
return GHOST_kDrawingContextTypeOpenGL;
-#ifdef WITH_METAL_BACKEND
case GPU_BACKEND_METAL:
+#ifdef WITH_METAL_BACKEND
return GHOST_kDrawingContextTypeMetal;
+#else
+ BLI_assert_unreachable();
+ return GHOST_kDrawingContextTypeNone;
#endif
}
- BLI_assert_unreachable();
- return GHOST_kDrawingContextTypeNone;
}
/** \} */