forked from mirrors/0ad
Replaces FALLTHROUGH macro by attribute
It was forgotten during removing the FALLTHROUGH macro in
b41ca5ad78.
This commit is contained in:
@@ -213,8 +213,8 @@ std::unique_ptr<CTexture> CTexture::Create(
|
||||
break;
|
||||
#if CONFIG2_GLES
|
||||
// GLES requires pixel type == UNSIGNED_SHORT or UNSIGNED_INT for depth.
|
||||
case Format::D16_UNORM: FALLTHROUGH;
|
||||
case Format::D24_UNORM: FALLTHROUGH;
|
||||
case Format::D16_UNORM: [[fallthrough]];
|
||||
case Format::D24_UNORM: [[fallthrough]];
|
||||
case Format::D32_SFLOAT:
|
||||
internalFormat = GL_DEPTH_COMPONENT;
|
||||
pixelFormat = GL_DEPTH_COMPONENT;
|
||||
|
||||
Reference in New Issue
Block a user