From 01c4961cc2fad7ce6501ff553c050d3f578cb28e Mon Sep 17 00:00:00 2001 From: GuilhermeWerner Date: Mon, 11 Jan 2021 18:01:49 -0300 Subject: [PATCH] Update Application.cpp --- OpenGL/Source/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenGL/Source/Application.cpp b/OpenGL/Source/Application.cpp index 88ba123..2cda635 100644 --- a/OpenGL/Source/Application.cpp +++ b/OpenGL/Source/Application.cpp @@ -40,8 +40,8 @@ int main() glBindBuffer(GL_ARRAY_BUFFER, buffer); glBufferData(GL_ARRAY_BUFFER, 6 * sizeof(float), positions, GL_STATIC_DRAW); - glEnableVertexAttribArray(0); glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, sizeof(float) * 2, 0); + glEnableVertexAttribArray(0); /* Loop until the user closes the window */ while (!glfwWindowShouldClose(window))