Commit ac1c2b82 authored by Fredrik Höglund's avatar Fredrik Höglund

st/mesa: set ctx->Const.UniformBufferOffsetAlignment

Reviewed-by: Marek Olšák's avatarMarek Olšák <maraeo@gmail.com>
parent a3dd1ff4
......@@ -265,8 +265,11 @@ void st_init_limits(struct st_context *st)
c->GLSLSkipStrictMaxVaryingLimitCheck =
screen->get_param(screen, PIPE_CAP_TGSI_CAN_COMPACT_VARYINGS);
if (can_ubo)
if (can_ubo) {
st->ctx->Extensions.ARB_uniform_buffer_object = GL_TRUE;
st->ctx->Const.UniformBufferOffsetAlignment =
screen->get_param(screen, PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment