Browse Source

remove unused gl_buffer pointer on GLBufferToAttribMapping structure

main
cinnaboot 5 years ago
parent
commit
e4568cb987
  1. 4
      src/main.cpp
  2. 1
      src/shader.h

4
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;

1
src/shader.h

@ -92,7 +92,6 @@ struct GLContext
struct GLBufferToAttribMapping
{
const char* buf_name;
gl_buffer* attrib_buf;
GLVertexAttrib* attrib;
void* mesh_buf;
};

Loading…
Cancel
Save