diff options
author | Iago Toral Quiroga <[email protected]> | 2015-10-16 11:27:43 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2015-10-19 08:20:40 +0200 |
commit | 14c3db7bc59a6b10f5a13930c0274d4155cb8791 (patch) | |
tree | 678ee33874a78f9411bba3a0ed3b4b0bca4cd61c /src/mesa/main/shaderapi.c | |
parent | fba582efc7d66140b5c18ada4d5cd93c9c1e5967 (diff) |
main: GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH is about UBOS, not SSBOs
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r-- | src/mesa/main/shaderapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 26995add386..18e463d4ccc 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -713,10 +713,10 @@ get_programiv(struct gl_context *ctx, GLuint program, GLenum pname, if (!has_ubo) break; - for (i = 0; i < shProg->NumBufferInterfaceBlocks; i++) { + for (i = 0; i < shProg->NumUniformBlocks; i++) { /* Add one for the terminating NUL character. */ - const GLint len = strlen(shProg->BufferInterfaceBlocks[i].Name) + 1; + const GLint len = strlen(shProg->UniformBlocks[i]->Name) + 1; if (len > max_len) max_len = len; |