diff --git a/src/shader.cpp b/src/shader.cpp index d5711ca..5cfe449 100644 --- a/src/shader.cpp +++ b/src/shader.cpp @@ -494,6 +494,7 @@ parseAttributes(memory_arena* arena, shader_program* s, GLContext* gl_ctx) GLVertexAttrib* attrib = &s->vertex_attribs[i]; attrib->data_type = type; attrib->location = location; + // FIXME: need a helper for attrib->num_components attrib->name = arenaCopyCStr(arena, attrib_name, sizeof(attrib_name)); // TODO: replace POSITION, NORMAL, UV... etc enums in loadGLMesh() // with extra logic to detect mesh to shader mapping