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:
authorJeroen Bakker <jeroen@blender.org>2022-08-03 09:25:41 +0300
committerJeroen Bakker <jeroen@blender.org>2022-08-03 09:25:41 +0300
commitc9821b6c01ec8effeece56c7f723ab7c98248170 (patch)
tree60fd9e792bf5277944aa57553649e15cb0fb45ec /source/blender/gpu/intern
parentea70687dd5b9474ce183b7de12e42ec5201864e0 (diff)
Fix compile issue in recent commit.
fallthrough in case statement.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r--source/blender/gpu/intern/gpu_texture.cc4
1 files changed, 2 insertions, 2 deletions
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;