mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-03-28 10:00:51 +00:00
fix(README.md): replace P_TRIANGLE_VERTICE_LEN to sizeof(P_TRIANGLE_VERTICE)
This commit is contained in:
@@ -271,7 +271,7 @@ int main()
|
||||
shader.use();
|
||||
|
||||
// ========== Draw triangle ==========
|
||||
vao.drawElement(GL_TRIANGLES, mesh::P_TRIANGLE_INDICE_LEN, GL_UNSIGNED_INT, 0);
|
||||
vao.drawElement(GL_TRIANGLES, sizeof(P_TRIANGLE_INDICE), GL_UNSIGNED_INT, 0);
|
||||
|
||||
// ========== Poll events and swap buffers ==========
|
||||
glfwPollEvents();
|
||||
|
||||
Reference in New Issue
Block a user