From: Iago Toral Quiroga Date: Fri, 16 Oct 2015 09:27:43 +0000 (+0200) Subject: main: GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH is about UBOS, not SSBOs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14c3db7bc59a6b10f5a13930c0274d4155cb8791;p=mesa.git main: GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH is about UBOS, not SSBOs Reviewed-by: Kristian Høgsberg Reviewed-by: Marek Olšák --- 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;