From 52dc91dad4233f30032055e527e510e45ddbc0fa Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Tue, 25 Jan 2022 11:50:54 -0500 Subject: [PATCH] set GLVertexAttrib.buf_type when loading a GLMesh --- src/shader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shader.cpp b/src/shader.cpp index 4205af5..10c5207 100644 --- a/src/shader.cpp +++ b/src/shader.cpp @@ -273,6 +273,8 @@ loadGLMesh(const Mesh& m, for (u32 i = 0; i < num_mappings; i++) { GLBuffer& buf = glm.vertex_attrib_buffers[i]; GLVertexAttrib* attrib = mappings[i].attrib; + // FIXME: does it make sense to set 'buf_type' in a separate function? + attrib->buf_type = mappings[i].buf_type; u32 type_size = getGLTypeSize(attrib->data_type); assert(type_size > 0);