st/mesa: set ctx->Const.UniformBufferOffsetAlignment
Reviewed-by: Marek Olšák <maraeo@gmail.com>
This commit is contained in:
parent
a3dd1ff45f
commit
ac1c2b8238
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue