From 9f32b4cbd5f0e1ab07c3fef23ea246c149de4e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Nobel-J=C3=B8rgensen?= Date: Thu, 22 Dec 2016 12:16:53 +0100 Subject: [PATCH] disableVertexAttribArray 0 instead of 1. Alternative delete the line. --- Chapter_6/Example_6_3/Example_6_3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter_6/Example_6_3/Example_6_3.c b/Chapter_6/Example_6_3/Example_6_3.c index a5bbd05..a26ac77 100644 --- a/Chapter_6/Example_6_3/Example_6_3.c +++ b/Chapter_6/Example_6_3/Example_6_3.c @@ -117,7 +117,7 @@ void Draw ( ESContext *esContext ) glDrawArrays ( GL_TRIANGLES, 0, 3 ); - glDisableVertexAttribArray ( 1 ); + glDisableVertexAttribArray ( 0 ); } void Shutdown ( ESContext *esContext )