From 8a1cb0625d3450c9dccbe39726839c71b8462cbc Mon Sep 17 00:00:00 2001 From: Lior David Date: Mon, 3 Apr 2017 02:30:43 +0300 Subject: [PATCH] Update 06instancing1.cpp --- 06instancing1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();