diff options
author | Timothy Arceri <[email protected]> | 2016-06-28 07:52:46 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-06-30 16:51:25 +1000 |
commit | 32c410d2df2b9c9476834bf891cdcf8254bdfb4e (patch) | |
tree | 13ee9cff276039d6eca45c8b1c180e0ecd7dada7 /src/compiler/glsl/linker.cpp | |
parent | 1fb8c6df884c2a17cf980c4ea32db4c214903b55 (diff) |
glsl: simplify link_uniform_blocks()
There is only ever one shader so simplify the input params.
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/compiler/glsl/linker.cpp')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 926520eb1b8..9826368c561 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -2312,9 +2312,8 @@ link_intrastage_shaders(void *mem_ctx, v.fixup_unnamed_interface_types(); /* Link up uniform blocks defined within this stage. */ - link_uniform_blocks(mem_ctx, ctx, prog, &linked, 1, - &ubo_blocks, &num_ubo_blocks, &ssbo_blocks, - &num_ssbo_blocks); + link_uniform_blocks(mem_ctx, ctx, prog, linked, &ubo_blocks, + &num_ubo_blocks, &ssbo_blocks, &num_ssbo_blocks); if (!prog->LinkStatus) { _mesa_delete_linked_shader(ctx, linked); |