diff --git a/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp b/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp index 27684016f0..5b5582127f 100644 --- a/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp +++ b/src/common/rendering/vulkan/accelstructs/vk_lightmap.cpp @@ -407,6 +407,7 @@ void VkLightmap::BlurBakeImage() void VkLightmap::CopyBakeImageResult() { uint32_t pixels = 0; + uint32_t surfacesRenderer = 0; std::set seenPages; std::vector regions; @@ -433,10 +434,11 @@ void VkLightmap::CopyBakeImageResult() seenPages.insert(surface->atlasPageIndex); pixels += surface->Area(); - lastSurfaceCount++; + surfacesRenderer++; } } + lastSurfaceCount = surfacesRenderer; lastPixelCount = pixels; totalPixelCount += pixels;