Replaced osg::DrawElementeUInt usage for a more flexible DrawElements base class approach with the default set to DrawElementUShort to ensure compatibility with GLES2 implementes that don't support uint for glDrawElements.

This commit is contained in:
Robert Osfield
2017-05-25 10:41:12 +01:00
parent 10c1fedfca
commit 8b433f8364
2 changed files with 19 additions and 12 deletions

View File

@@ -313,7 +313,7 @@ public:
osg::buffered_object<Coords3> _transformedBackdropCoords[8];
ColorCoords _colorCoords;
osg::ref_ptr<osg::DrawElementsUInt> _quadIndices;
osg::ref_ptr<osg::DrawElements> _quadIndices;
void updateQuadIndices();
GlyphQuads();