From ac7b3e405cfc6acbc62fa786f31bcf260ffbe329 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 21 Aug 2016 23:37:14 +0200 Subject: [PATCH] Cleanup --- examples/simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/simple.c b/examples/simple.c index 43d11fa9..a961dab9 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -124,10 +124,10 @@ int main(void) glEnableVertexAttribArray(vpos_location); glVertexAttribPointer(vpos_location, 2, GL_FLOAT, GL_FALSE, - sizeof(float) * 5, (void*) 0); + sizeof(vertices[0]), (void*) 0); glEnableVertexAttribArray(vcol_location); glVertexAttribPointer(vcol_location, 3, GL_FLOAT, GL_FALSE, - sizeof(float) * 5, (void*) (sizeof(float) * 2)); + sizeof(vertices[0]), (void*) (sizeof(float) * 2)); while (!glfwWindowShouldClose(window)) {