diff --git a/src/osg/PrimitiveSet.cpp b/src/osg/PrimitiveSet.cpp index 9bb9fb7be..3379a68ed 100644 --- a/src/osg/PrimitiveSet.cpp +++ b/src/osg/PrimitiveSet.cpp @@ -117,7 +117,8 @@ void DrawArrayLengths::draw(State& state, bool) const itr!=end(); ++itr) { - glDrawArrays(mode,first,*itr); + if (_numInstances>=1) state.glDrawArraysInstanced(mode,first,*itr,_numInstances); + else glDrawArrays(mode,first,*itr); first += *itr; }