mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-11 16:33:38 +00:00
Don't divide by zero if there are no textures to fetch stats for
This commit is contained in:
1 file changed
+10
-4
@@ -746,11 +746,17 @@ void StatisticsViewer::GenerateReport()
|
||||
}
|
||||
}
|
||||
|
||||
texW /= texCount;
|
||||
texH /= texCount;
|
||||
if(texCount > 0)
|
||||
{
|
||||
texW /= texCount;
|
||||
texH /= texCount;
|
||||
}
|
||||
|
||||
largeTexW /= largeTexCount;
|
||||
largeTexH /= largeTexCount;
|
||||
if(largeTexCount > 0)
|
||||
{
|
||||
largeTexW /= largeTexCount;
|
||||
largeTexH /= largeTexCount;
|
||||
}
|
||||
|
||||
const FrameDescription &frameInfo = m_Ctx.FrameInfo();
|
||||
|
||||
|
||||
Reference in new issue
Block a user