It might have been mapped through ARB_map_buffer_range, in which case
OES_mapbuffer didn't get initialized in Buffer::map.
+ // TODO check if it's mapped
if(ARB_direct_state_access)
return glUnmapNamedBuffer(id);
if(ARB_direct_state_access)
return glUnmapNamedBuffer(id);
{
BindRestore _bind(this, type);
return glUnmapBuffer(type);
}
{
BindRestore _bind(this, type);
return glUnmapBuffer(type);
}
}
void Buffer::bind_to(BufferType t) const
}
void Buffer::bind_to(BufferType t) const