From 76cbf5964d4519298d16040d1afb212723dd8465 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Sat, 13 Feb 2016 17:36:49 +1100 Subject: [PATCH] fix block index look-up --- src/mesa/main/shader_query.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index f63ffd8..b713ef2 100644 --- a/src/mesa/main/shader_query.cpp +++ b/src/mesa/main/shader_query.cpp @@ -669,6 +669,7 @@ _mesa_program_resource_index(struct gl_shader_program *shProg, case GL_TESS_EVALUATION_SUBROUTINE: return RESOURCE_SUB(res)->index; case GL_UNIFORM_BLOCK: + return RESOURCE_UNI(res)->block_index; case GL_SHADER_STORAGE_BLOCK: case GL_TRANSFORM_FEEDBACK_VARYING: default: -- 2.5.0