summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-05-17 14:20:00 +1000
committerDave Airlie <airlied@redhat.com>2016-05-23 16:19:57 +1000
commit22db9b10ebd46c777a87da890f5089ad24686441 (patch)
tree563cd945f1f32800897452a7d6564187813bebd7 /src/mesa/main/shaderapi.c
parent3b8b6be7bb35291827b758038e4c99b25aced30c (diff)
downloadexternal_mesa3d-22db9b10ebd46c777a87da890f5089ad24686441.zip
external_mesa3d-22db9b10ebd46c777a87da890f5089ad24686441.tar.gz
external_mesa3d-22db9b10ebd46c777a87da890f5089ad24686441.tar.bz2
mesa/subroutines: don't generate error in GetSubroutineIndex.
GLSL spec says this doesn't generate an error. Fixes: GL45-CTS.explicit_uniform_location.subroutine-loc Reviewed-by: Chris Forbes <chrisforbes@google.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r--src/mesa/main/shaderapi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 109171e..47666d8 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -2324,7 +2324,6 @@ _mesa_GetSubroutineIndex(GLuint program, GLenum shadertype,
resource_type = _mesa_shader_stage_to_subroutine(stage);
res = _mesa_program_resource_find_name(shProg, resource_type, name, NULL);
if (!res) {
- _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return -1;
}