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
8c79dccbbc
commit
ec8cb360c8
@ -117,7 +117,8 @@ void DrawArrayLengths::draw(State& state, bool) const
|
|||||||
itr!=end();
|
itr!=end();
|
||||||
++itr)
|
++itr)
|
||||||
{
|
{
|
||||||
glDrawArrays(mode,first,*itr);
|
if (_numInstances>=1) state.glDrawArraysInstanced(mode,first,*itr,_numInstances);
|
||||||
|
else glDrawArrays(mode,first,*itr);
|
||||||
first += *itr;
|
first += *itr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user