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 8c79dccbbc
commit ec8cb360c8

View File

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