bugfix in index calculation for material group > 0
This commit is contained in:
1 parent
e1f2d5a04a
commit
2e599ab86b
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user