Don't divide by zero if there are no textures to fetch stats for

This commit is contained in:
baldurk
2017-10-11 11:32:16 +01:00
parent 0d7a064443
commit 8639e616cf
+10 -4
View File
@@ -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();