From 9cc4d85b6961dba97e73ec13201b7cc8f9217478 Mon Sep 17 00:00:00 2001 From: HumanBean4 <101287097+HumanBean4@users.noreply.github.com> Date: Thu, 19 Jan 2023 10:16:28 -0500 Subject: [PATCH] Fixed texture side iterator being too small (#3026) --- src/renderer_d3d12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index 47b72f82a..d27136791 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -5099,7 +5099,7 @@ namespace bgfx { namespace d3d12 , swizzle ? " (swizzle BGRA8 -> RGBA8)" : "" ); - for (uint8_t side = 0; side < numSides; ++side) + for (uint16_t side = 0; side < numSides; ++side) { for (uint8_t lod = 0; lod < ti.numMips; ++lod) {