bind buffers

This commit is contained in:
Josh Holtrop 2011-04-24 23:31:08 -04:00
parent 53d4bebbc2
commit e07ed46297

View File

@ -549,6 +549,8 @@ void WFObj::draw()
{
if (!m_valid)
return;
glBindBuffer(GL_ARRAY_BUFFER, m_data_vbo);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_index_vbo);
for (map<string, vector<Face> >::iterator it = m_faces.begin();
it != m_faces.end();
it++)