st/mesa: set ctx->Const.UniformBufferOffsetAlignment
authorFredrik Höglund <fredrik@kde.org>
Sat, 12 Jan 2013 11:56:31 +0000 (12:56 +0100)
committerFredrik Höglund <fredrik@kde.org>
Sat, 12 Jan 2013 21:08:09 +0000 (22:08 +0100)
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/mesa/state_tracker/st_extensions.c

index e7cf4f3bb8c6b1c2903d8679c5b7df960820935a..17fe16ee36de7f6f82b1247c7af64a17363cdc66 100644 (file)
@@ -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);
+   }
 }