From 5e165797935e470bf4d5b23de46955d44385012d Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Thu, 3 Oct 2024 16:32:47 +0200 Subject: [PATCH] Switch to DrawElementsUInt --- components/sceneutil/pathgridutil.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/sceneutil/pathgridutil.cpp b/components/sceneutil/pathgridutil.cpp index 523f5f699f..f78eea47c4 100644 --- a/components/sceneutil/pathgridutil.cpp +++ b/components/sceneutil/pathgridutil.cpp @@ -54,10 +54,10 @@ namespace SceneUtil { osg::ref_ptr vertices = new osg::Vec3Array(vertexCount); osg::ref_ptr colors = new osg::Vec4Array(vertexCount); - osg::ref_ptr pointIndices - = new osg::DrawElementsUShort(osg::PrimitiveSet::TRIANGLES, pointIndexCount); - osg::ref_ptr lineIndices - = new osg::DrawElementsUShort(osg::PrimitiveSet::LINES, edgeIndexCount); + osg::ref_ptr pointIndices + = new osg::DrawElementsUInt(osg::PrimitiveSet::TRIANGLES, pointIndexCount); + osg::ref_ptr lineIndices + = new osg::DrawElementsUInt(osg::PrimitiveSet::LINES, edgeIndexCount); // Add each point/node for (size_t pointIndex = 0; pointIndex < pathgrid.mPoints.size(); ++pointIndex) @@ -159,8 +159,8 @@ namespace SceneUtil { osg::ref_ptr vertices = new osg::Vec3Array(vertexCount); osg::ref_ptr colors = new osg::Vec4Array(vertexCount); - osg::ref_ptr indices - = new osg::DrawElementsUShort(osg::PrimitiveSet::LINES, indexCount); + osg::ref_ptr indices + = new osg::DrawElementsUInt(osg::PrimitiveSet::LINES, indexCount); osg::Vec3f wireOffset = osg::Vec3f(0, 0, (1 - DiamondWireframeScalar) * DiamondHalfHeight);