diff --git a/src/osg/PrimitiveSet.cpp b/src/osg/PrimitiveSet.cpp index 31edf53ac..718a76e91 100644 --- a/src/osg/PrimitiveSet.cpp +++ b/src/osg/PrimitiveSet.cpp @@ -129,7 +129,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; }