projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3dd1ff
)
st/mesa: set ctx->Const.UniformBufferOffsetAlignment
author
Fredrik Höglund
<fredrik@kde.org>
Sat, 12 Jan 2013 11:56:31 +0000
(12:56 +0100)
committer
Fredrik 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
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_extensions.c
b/src/mesa/state_tracker/st_extensions.c
index e7cf4f3bb8c6b1c2903d8679c5b7df960820935a..17fe16ee36de7f6f82b1247c7af64a17363cdc66 100644
(file)
--- 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);
+ }
}