From e4568cb987efae1f957aa8a613b531c55a7cf074 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Fri, 31 Dec 2021 11:04:58 -0500 Subject: [PATCH] remove unused gl_buffer pointer on GLBufferToAttribMapping structure --- src/main.cpp | 4 ++-- src/shader.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ca81bfd..b63e2c6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -329,8 +329,8 @@ loadScene(RenderState* rs) if (!pos_attrib || !normal_attrib) return false; GLBufferToAttribMapping attrib_mappings[2] = { - { "position", nullptr, pos_attrib, texmesh.vertices }, - { "normal", nullptr, normal_attrib, texmesh.normals } + { "position", pos_attrib, texmesh.vertices }, + { "normal", normal_attrib, texmesh.normals } }; const u32 NUM_CUBES = 4; diff --git a/src/shader.h b/src/shader.h index 6d307cb..e511ed4 100644 --- a/src/shader.h +++ b/src/shader.h @@ -92,7 +92,6 @@ struct GLContext struct GLBufferToAttribMapping { const char* buf_name; - gl_buffer* attrib_buf; GLVertexAttrib* attrib; void* mesh_buf; };