- bool can_append = false;
- if(!batches.empty())
- {
- PrimitiveType type = b.get_type();
- can_append = (type==batches.back().get_type() &&
- type!=LINE_STRIP && type!=LINE_LOOP && type!=POLYGON &&
- (type!=TRIANGLE_FAN || is_supported("GL_NV_primitive_restart")));
- }
-
- if(defer_ibuf)
- {
- ibuf = new Buffer(ELEMENT_ARRAY_BUFFER);
- defer_ibuf = false;
- }