From 1ef52f28318357b204bdfa682c0ac5bec57f7182 Mon Sep 17 00:00:00 2001 From: Ayush Rawat Date: Sun, 24 May 2026 17:32:12 +0530 Subject: [PATCH] Fix: Revert temporary vertices_foo variable rename --- src/boomer.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/boomer.nim b/src/boomer.nim index a44b744..e56e234 100644 --- a/src/boomer.nim +++ b/src/boomer.nim @@ -358,7 +358,7 @@ proc main() = let h = screenshot.image.height.float32 var vao, vbo, ebo: GLuint - vertices_foo = [ + vertices = [ # Position Texture coords [GLfloat w, 0, 1.0, 1.0], # Top right [GLfloat w, h, 1.0, 0.0], # Bottom right @@ -379,14 +379,14 @@ proc main() = glBindVertexArray(vao) glBindBuffer(GL_ARRAY_BUFFER, vbo) - glBufferData(GL_ARRAY_BUFFER, size = GLsizeiptr(sizeof(vertices_foo)), - addr vertices_foo, GL_STATIC_DRAW) + glBufferData(GL_ARRAY_BUFFER, size = GLsizeiptr(sizeof(vertices)), + addr vertices, GL_STATIC_DRAW) glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ebo); glBufferData(GL_ELEMENT_ARRAY_BUFFER, size = GLsizeiptr(sizeof(indices)), addr indices, GL_STATIC_DRAW); - var stride = GLsizei(vertices_foo[0].len * sizeof(GLfloat)) + var stride = GLsizei(vertices[0].len * sizeof(GLfloat)) glVertexAttribPointer(0, 2, cGL_FLOAT, false, stride, cast[pointer](0)) glEnableVertexAttribArray(0)