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>
This commit is contained in:
parent
3b8b6be7bb
commit
22db9b10eb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue