main: GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH is about UBOS, not SSBOs
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 16 Oct 2015 09:27:43 +0000 (11:27 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 19 Oct 2015 06:20:40 +0000 (08:20 +0200)
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/shaderapi.c

index 26995add38610e6b4ceeaaa38603c3f866ec33e8..18e463d4ccc394744da1bd5412f72b58d599098b 100644 (file)
@@ -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;