[Bf-blender-cvs] [c9821b6c01e] master: Fix compile issue in recent commit.
Jeroen Bakker
noreply at git.blender.org
Wed Aug 3 08:26:10 CEST 2022
Commit: c9821b6c01ec8effeece56c7f723ab7c98248170
Author: Jeroen Bakker
Date: Wed Aug 3 08:25:41 2022 +0200
Branches: master
https://developer.blender.org/rBc9821b6c01ec8effeece56c7f723ab7c98248170
Fix compile issue in recent commit.
fallthrough in case statement.
===================================================================
M source/blender/gpu/intern/gpu_texture.cc
===================================================================
diff --git a/source/blender/gpu/intern/gpu_texture.cc b/source/blender/gpu/intern/gpu_texture.cc
index 6ce60c6a0be..e52311b3bf0 100644
--- a/source/blender/gpu/intern/gpu_texture.cc
+++ b/source/blender/gpu/intern/gpu_texture.cc
@@ -705,7 +705,6 @@ const char *GPU_texture_format_description(eGPUTextureFormat texture_format)
case GPU_R16:
return "R16";
-
/* Special formats texture & render-buffer. */
case GPU_RGB10_A2:
return "RGB10A2";
@@ -744,9 +743,10 @@ const char *GPU_texture_format_description(eGPUTextureFormat texture_format)
case GPU_DEPTH_COMPONENT16:
return "DEPTH16";
}
+ BLI_assert_unreachable();
+ return "";
}
-
bool GPU_texture_depth(const GPUTexture *tex)
{
return (reinterpret_cast<const Texture *>(tex)->format_flag_get() & GPU_FORMAT_DEPTH) != 0;
More information about the Bf-blender-cvs
mailing list