diff options
author | Eric Anholt <[email protected]> | 2012-06-18 11:17:04 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-06-21 10:57:54 -0700 |
commit | c5c696e7fbce2e0b598ed5d4b1d73f086a664a57 (patch) | |
tree | beb5a4e1d0b83f1442599d77f27e0299597e494a /src/mesa/main/get.c | |
parent | 5426b1ade9c97497bdf5ecd7c44701a6d5ef04dc (diff) |
mesa: Add support for the GL_UNIFORM_BUFFER general binding point.
Fixes piglit ARB_uniform_buffer_object/buffer-targets.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 4ac3689ae4a..9e9ddcbcc43 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1351,6 +1351,8 @@ static const struct value_desc values[] = { { GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, CONTEXT_INT(Const.UniformBufferOffsetAlignment), extra_ARB_uniform_buffer_object }, + { GL_UNIFORM_BUFFER_BINDING, LOC_CUSTOM, TYPE_INT, 0, extra_ARB_uniform_buffer_object }, + #endif /* FEATURE_GL */ }; @@ -1801,6 +1803,10 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu v->value_int = samp ? samp->Name : 0; } break; + /* GL_ARB_uniform_buffer_object */ + case GL_UNIFORM_BUFFER_BINDING: + v->value_int = ctx->UniformBuffer->Name; + break; } } |