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))