Fix some warnings

This commit is contained in:
SirLynix
2023-06-27 19:31:24 +02:00
parent b01ee18eaf
commit 96618cbb5b
11 changed files with 28 additions and 23 deletions

View File

@@ -37,9 +37,11 @@ namespace Nz
case ImageType::E1D:
NazaraAssert(baseLayer == 0, "out of bounds");
NazaraAssert(layerCount <= 1, "out of bounds");
[[fallthrough]];
case ImageType::E2D:
NazaraAssert(baseLayer == 0, "out of bounds");
NazaraAssert(layerCount <= 1, "out of bounds");
[[fallthrough]];
case ImageType::E3D:
region.z = 0;
region.depth = 1;