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:
parent
017ec902e2
commit
71339906c0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user