mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
avoid div by zero
This commit is contained in:
parent
8a9f3b9508
commit
766a5c7f81
1 changed files with 3 additions and 0 deletions
|
@ -177,6 +177,9 @@ void PolyLineEntityRenderer::doRenderUpdateSynchronousTyped(const ScenePointer&
|
|||
|
||||
void PolyLineEntityRenderer::updateGeometry() {
|
||||
int maxNumVertices = std::min(_points.length(), _normals.length());
|
||||
if (maxNumVertices < 1) {
|
||||
return;
|
||||
}
|
||||
bool doesStrokeWidthVary = false;
|
||||
if (_widths.size() > 0) {
|
||||
float prevWidth = _widths[0];
|
||||
|
|
Loading…
Reference in a new issue