mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-04-21 10:20:46 +00:00
Fix lastSurfaceCount growing forever
This commit is contained in:
parent
88a25e0274
commit
cdd6336793
1 changed files with 3 additions and 1 deletions
|
@ -407,6 +407,7 @@ void VkLightmap::BlurBakeImage()
|
|||
void VkLightmap::CopyBakeImageResult()
|
||||
{
|
||||
uint32_t pixels = 0;
|
||||
uint32_t surfacesRenderer = 0;
|
||||
|
||||
std::set<int> seenPages;
|
||||
std::vector<VkImageCopy> regions;
|
||||
|
@ -433,10 +434,11 @@ void VkLightmap::CopyBakeImageResult()
|
|||
seenPages.insert(surface->atlasPageIndex);
|
||||
|
||||
pixels += surface->Area();
|
||||
lastSurfaceCount++;
|
||||
surfacesRenderer++;
|
||||
}
|
||||
}
|
||||
|
||||
lastSurfaceCount = surfacesRenderer;
|
||||
lastPixelCount = pixels;
|
||||
totalPixelCount += pixels;
|
||||
|
||||
|
|
Loading…
Reference in a new issue