diff options
author | Samuel Iglesias Gonsalvez <[email protected]> | 2015-09-11 12:29:37 +0200 |
---|---|---|
committer | Samuel Iglesias Gonsalvez <[email protected]> | 2015-09-29 10:03:47 +0200 |
commit | 6668eb5a451c43ac78a784711cf239fdf7ca75ef (patch) | |
tree | 7aa0ccde2859f251a99ea65d12554cd36ab6eaa0 /src/mesa/main/uniforms.c | |
parent | 38004eb17ce9663a4343bae4e783e97e73596e9c (diff) |
mesa: rename gl_shader_program's NumUniformBlocks to NumBufferInterfaceBlocks
Because it counts shader storage blocks too.
v2:
- Use NumBufferInterfaceBlocks instead (Jordan).
Signed-off-by: Samuel Iglesias Gonsalvez <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/mesa/main/uniforms.c')
-rw-r--r-- | src/mesa/main/uniforms.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index c491707e937..04cc81f9809 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -1002,10 +1002,10 @@ _mesa_UniformBlockBinding(GLuint program, if (!shProg) return; - if (uniformBlockIndex >= shProg->NumUniformBlocks) { + if (uniformBlockIndex >= shProg->NumBufferInterfaceBlocks) { _mesa_error(ctx, GL_INVALID_VALUE, "glUniformBlockBinding(block index %u >= %u)", - uniformBlockIndex, shProg->NumUniformBlocks); + uniformBlockIndex, shProg->NumBufferInterfaceBlocks); return; } @@ -1054,10 +1054,10 @@ _mesa_ShaderStorageBlockBinding(GLuint program, if (!shProg) return; - if (shaderStorageBlockIndex >= shProg->NumUniformBlocks) { + if (shaderStorageBlockIndex >= shProg->NumBufferInterfaceBlocks) { _mesa_error(ctx, GL_INVALID_VALUE, "glShaderStorageBlockBinding(block index %u >= %u)", - shaderStorageBlockIndex, shProg->NumUniformBlocks); + shaderStorageBlockIndex, shProg->NumBufferInterfaceBlocks); return; } |