mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
[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:
parent
dbd1a80046
commit
a9fea4c7d3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue