Fixed little bug in DrawArraysLength (instancing not supported).

Corrected PrimitiveSet.cpp in order DrawArraysLength can be instanced.
It's the only pr missing code
if (_numInstances>=1)      glDrawXXXInstanced(...,_numInstances);
else glDrawXXX();
This commit is contained in:
Julien Valentin 2016-06-03 17:57:04 +01:00 committed by Robert Osfield
parent 017ec902e2
commit 71339906c0

View File

@ -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;
}