Replaces FALLTHROUGH macro by attribute
Some checks failed
checkrefs / lfscheck (push) Has been cancelled
checkrefs / checkrefs (push) Has been cancelled
lint / cppcheck (push) Has been cancelled
lint / copyright (push) Has been cancelled
lint / jenkinsfiles (push) Has been cancelled
pre-commit / build (push) Has been cancelled

It was forgotten during removing the FALLTHROUGH macro in
b41ca5ad78.
This commit is contained in:
Vladislav Belov 2026-05-22 23:25:31 +02:00
parent a0ecfbaa33
commit 1250ca1dac
No known key found for this signature in database
GPG key ID: 353545E45DB9CCB3

View file

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