From 1250ca1dac84f6db616181b99dbf6811c83171df Mon Sep 17 00:00:00 2001 From: Vladislav Belov Date: Fri, 22 May 2026 23:25:31 +0200 Subject: [PATCH] Replaces FALLTHROUGH macro by attribute It was forgotten during removing the FALLTHROUGH macro in b41ca5ad78e8fca8ed65088250d2c7e0e21239e1. --- source/renderer/backend/gl/Texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/renderer/backend/gl/Texture.cpp b/source/renderer/backend/gl/Texture.cpp index 2825acf9de..6b17f78fbd 100644 --- a/source/renderer/backend/gl/Texture.cpp +++ b/source/renderer/backend/gl/Texture.cpp @@ -213,8 +213,8 @@ std::unique_ptr 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;