Fix compile issue in recent commit.

fallthrough in case statement.
This commit is contained in:
Jeroen Bakker 2022-08-03 08:25:41 +02:00
parent ea70687dd5
commit c9821b6c01
1 changed files with 2 additions and 2 deletions

View File

@ -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;