An incorrect comparison operator caused a batch meeting certain criteria
to unintentionally trigger a primitive restart with its last index instead
of rendering it properly.
restart_index = index;
}
}
restart_index = index;
}
}
- else if(restart_index && restart_index<max_index)
+ else if(restart_index && restart_index<=max_index)
{
glDisableClientState(GL_PRIMITIVE_RESTART_NV);
restart_index = 0;
{
glDisableClientState(GL_PRIMITIVE_RESTART_NV);
restart_index = 0;