|
|
|
|
@ -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); |
|
|
|
|
|