ibuf(0),
vao_id(0),
defer_buffers(true),
- dirty(false),
+ dirty(true),
winding(0)
{ }
if(defer_buffers)
create_buffers();
- dirty |= 1;
if(!batches.empty() && batches.back().can_append(b.get_type()))
batches.back().append(b);
else
/* If VAOs are not supported, vao_id is zero and set_current won't get
called. Thus unbind won't try to call a null function either. */
if(!vao_id)
+ {
unbind();
+ vertices.apply();
+ }
else if(set_current(this))
{
glBindVertexArray(vao_id);