Fix lastSurfaceCount growing forever
This commit is contained in:
parent
b588d0ef22
commit
e3e08c29b0
1 changed files with 3 additions and 1 deletions
|
|
@ -406,6 +406,7 @@ void VkLightmap::BlurBakeImage()
|
|||
void VkLightmap::CopyBakeImageResult()
|
||||
{
|
||||
uint32_t pixels = 0;
|
||||
uint32_t surfacesRenderer = 0;
|
||||
|
||||
std::set<int> seenPages;
|
||||
std::vector<VkImageCopy> regions;
|
||||
|
|
@ -432,10 +433,11 @@ void VkLightmap::CopyBakeImageResult()
|
|||
seenPages.insert(surface->atlasPageIndex);
|
||||
|
||||
pixels += surface->Area();
|
||||
lastSurfaceCount++;
|
||||
surfacesRenderer++;
|
||||
}
|
||||
}
|
||||
|
||||
lastSurfaceCount = surfacesRenderer;
|
||||
lastPixelCount = pixels;
|
||||
totalPixelCount += pixels;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue