summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorFredrik Höglund <[email protected]>2013-01-12 12:56:31 +0100
committerFredrik Höglund <[email protected]>2013-01-12 22:08:09 +0100
commitac1c2b82385911309860526eb335dcb495f12999 (patch)
tree8750afb63d931bf4ad2e8ddb88f722e9433b3e39 /src/mesa/state_tracker
parenta3dd1ff45fe73d6edaf6f9ba3ff21476d9be9ba6 (diff)
st/mesa: set ctx->Const.UniformBufferOffsetAlignment
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_extensions.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index e7cf4f3bb8c..17fe16ee36d 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -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);
+ }
}