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:
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.cc')
-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;