Cleaned up some internal love.graphics code.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-12-03 23:04:40 -04:00
parent cbcb1a8606
commit e099e57052
7 changed files with 40 additions and 51 deletions
+3 -1
View File
@@ -117,6 +117,7 @@ Graphics::Graphics()
, streamBufferState()
, projectionMatrix()
, canvasSwitchCount(0)
, drawCalls(0)
, drawCallsBatched(0)
, capabilities()
, cachedShaderStages()
@@ -1459,8 +1460,9 @@ Graphics::Stats Graphics::getStats() const
{
Stats stats;
getAPIStats(stats.drawCalls, stats.shaderSwitches);
getAPIStats(stats.shaderSwitches);
stats.drawCalls = drawCalls;
if (streamBufferState.vertexCount > 0)
stats.drawCalls++;