[WL21389] Minor fix to RenderableShapeEntityItem::doRender (details below).

Shape isn't guaranteed to be permanent and thus the triangle count isn't
guaranteed to be the same since inception, so grab it each time.

Changes to be committed:
    modified:   libraries/entities-renderer/src/RenderableShapeEntityItem.cpp
This commit is contained in:
LaShonda Hopper 2017-10-10 15:36:45 -04:00
parent dbd1a80046
commit a9fea4c7d3

View file

@ -154,6 +154,6 @@ void ShapeEntityRenderer::doRender(RenderArgs* args) {
}
}
static const auto triCount = geometryCache->getShapeTriangleCount(geometryShape);
const auto triCount = geometryCache->getShapeTriangleCount(geometryShape);
args->_details._trianglesRendered += (int)triCount;
}