mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Don't divide by zero if there are no textures to fetch stats for
This commit is contained in:
@@ -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