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