mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-27 12:11:35 +00:00
Switch to DrawElementsUInt
This commit is contained in:
parent
6644a7f27b
commit
5e16579793
1 changed files with 6 additions and 6 deletions
|
@ -54,10 +54,10 @@ namespace SceneUtil
|
||||||
{
|
{
|
||||||
osg::ref_ptr<osg::Vec3Array> vertices = new osg::Vec3Array(vertexCount);
|
osg::ref_ptr<osg::Vec3Array> vertices = new osg::Vec3Array(vertexCount);
|
||||||
osg::ref_ptr<osg::Vec4Array> colors = new osg::Vec4Array(vertexCount);
|
osg::ref_ptr<osg::Vec4Array> colors = new osg::Vec4Array(vertexCount);
|
||||||
osg::ref_ptr<osg::DrawElementsUShort> pointIndices
|
osg::ref_ptr<osg::DrawElementsUInt> pointIndices
|
||||||
= new osg::DrawElementsUShort(osg::PrimitiveSet::TRIANGLES, pointIndexCount);
|
= new osg::DrawElementsUInt(osg::PrimitiveSet::TRIANGLES, pointIndexCount);
|
||||||
osg::ref_ptr<osg::DrawElementsUShort> lineIndices
|
osg::ref_ptr<osg::DrawElementsUInt> lineIndices
|
||||||
= new osg::DrawElementsUShort(osg::PrimitiveSet::LINES, edgeIndexCount);
|
= new osg::DrawElementsUInt(osg::PrimitiveSet::LINES, edgeIndexCount);
|
||||||
|
|
||||||
// Add each point/node
|
// Add each point/node
|
||||||
for (size_t pointIndex = 0; pointIndex < pathgrid.mPoints.size(); ++pointIndex)
|
for (size_t pointIndex = 0; pointIndex < pathgrid.mPoints.size(); ++pointIndex)
|
||||||
|
@ -159,8 +159,8 @@ namespace SceneUtil
|
||||||
{
|
{
|
||||||
osg::ref_ptr<osg::Vec3Array> vertices = new osg::Vec3Array(vertexCount);
|
osg::ref_ptr<osg::Vec3Array> vertices = new osg::Vec3Array(vertexCount);
|
||||||
osg::ref_ptr<osg::Vec4Array> colors = new osg::Vec4Array(vertexCount);
|
osg::ref_ptr<osg::Vec4Array> colors = new osg::Vec4Array(vertexCount);
|
||||||
osg::ref_ptr<osg::DrawElementsUShort> indices
|
osg::ref_ptr<osg::DrawElementsUInt> indices
|
||||||
= new osg::DrawElementsUShort(osg::PrimitiveSet::LINES, indexCount);
|
= new osg::DrawElementsUInt(osg::PrimitiveSet::LINES, indexCount);
|
||||||
|
|
||||||
osg::Vec3f wireOffset = osg::Vec3f(0, 0, (1 - DiamondWireframeScalar) * DiamondHalfHeight);
|
osg::Vec3f wireOffset = osg::Vec3f(0, 0, (1 - DiamondWireframeScalar) * DiamondHalfHeight);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue