mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
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
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:
parent
a0ecfbaa33
commit
1250ca1dac
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue