Instancing glDrawElements argument fix.

This commit is contained in:
Joey de Vries
2016-10-12 18:53:19 +02:00
parent c819799803
commit af6104b2f5

View File

@@ -182,7 +182,7 @@ int main()
for(GLuint i = 0; i < rock.meshes.size(); i++)
{
glBindVertexArray(rock.meshes[i].VAO);
glDrawElementsInstanced(GL_TRIANGLES, rock.meshes[i].vertices.size(), GL_UNSIGNED_INT, 0, amount);
glDrawElementsInstanced(GL_TRIANGLES, rock.meshes[i].indices.size(), GL_UNSIGNED_INT, 0, amount);
glBindVertexArray(0);
}
// reset our texture binding