diff --git a/06instancing1.cpp b/06instancing1.cpp index dfdc357..366111a 100644 --- a/06instancing1.cpp +++ b/06instancing1.cpp @@ -297,7 +297,7 @@ int main() { // draw // the additional parameter indicates how many instances to render - glDrawElementsInstanced(GL_TRIANGLES, 6*6, GL_UNSIGNED_INT, 0, 8); + glDrawElementsInstanced(GL_TRIANGLES, 2*3*6, GL_UNSIGNED_INT, 0, 8); // check for errors GLenum error = glGetError();