Update Application.cpp

This commit is contained in:
GuilhermeWerner
2021-01-11 18:01:49 -03:00
parent de05960e4b
commit 01c4961cc2

View File

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