bugfix in index calculation for material group > 0

This commit is contained in:
Josh Holtrop 2011-04-25 17:20:10 -04:00
parent e1f2d5a04a
commit 2e599ab86b

View File

@ -571,7 +571,7 @@ void WFObj::draw()
renderMaterial(m_materials[it->first]);
glDrawElements(GL_TRIANGLES, m_face_indices[it->first].second,
GL_UNSIGNED_SHORT,
(GLvoid *) (sizeof(GLfloat) * m_face_indices[it->first].first));
(GLvoid *) (sizeof(GLshort) * m_face_indices[it->first].first));
glPopAttrib();
}
glPopClientAttrib();