Fix compile issue in recent commit.
fallthrough in case statement.
This commit is contained in:
parent
ea70687dd5
commit
c9821b6c01
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue