diff --git a/src/shader.cpp b/src/shader.cpp index 03c1794..00c1316 100644 --- a/src/shader.cpp +++ b/src/shader.cpp @@ -246,9 +246,9 @@ initTransforms(MemoryArena* arena, xform_ubo->name = arenaCopyCStr(arena, "matrices"); glBindBuffer(xform_ubo->target, xform_ubo->id); - glBufferData(xform_ubo->target, sizeof(*xforms), xforms, - GL_DYNAMIC_DRAW); - // bindbufferbase + glBufferData(xform_ubo->target, sizeof(*xforms), xforms, GL_DYNAMIC_DRAW); + + // NOTE: bindbufferbase xform_ubo->binding_idx = gl_ctx->binding_count++; glBindBufferBase(xform_ubo->target, xform_ubo->binding_idx, xform_ubo->id); glBindBuffer(xform_ubo->target, 0);