diff options
author | Iago Toral Quiroga <[email protected]> | 2015-10-16 11:40:52 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2015-10-19 08:20:40 +0200 |
commit | 5a9ff87d0f10bae5dba4b2bebd28f2625cd485aa (patch) | |
tree | a4d29ff7298111e3632370eb3bf449309ea1e0a4 /src | |
parent | 55403665b6bff3778ba335e9fd7821fc9a11ad2b (diff) |
st/mesa: Use {Num}UniformBlocks instead of {Num}BufferInterfaceBlocks
The latter holds both UBOs and SSBOs, but here we only want UBOs.
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_atom_constbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_atom_constbuf.c b/src/mesa/state_tracker/st_atom_constbuf.c index 69e26cb6c26..acaa85d9356 100644 --- a/src/mesa/state_tracker/st_atom_constbuf.c +++ b/src/mesa/state_tracker/st_atom_constbuf.c @@ -234,11 +234,11 @@ static void st_bind_ubos(struct st_context *st, if (!shader) return; - for (i = 0; i < shader->NumBufferInterfaceBlocks; i++) { + for (i = 0; i < shader->NumUniformBlocks; i++) { struct gl_uniform_buffer_binding *binding; struct st_buffer_object *st_obj; - binding = &st->ctx->UniformBufferBindings[shader->BufferInterfaceBlocks[i].Binding]; + binding = &st->ctx->UniformBufferBindings[shader->UniformBlocks[i]->Binding]; st_obj = st_buffer_object(binding->BufferObject); cb.buffer = st_obj->buffer; |