summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/ast_function.cpp')
-rw-r--r--src/glsl/ast_function.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp
index 36bb26086fd..64237594e13 100644
--- a/src/glsl/ast_function.cpp
+++ b/src/glsl/ast_function.cpp
@@ -458,8 +458,8 @@ no_matching_function_error(const char *name,
print_function_prototypes(state, loc, state->symbols->get_function(name));
- if (state->num_builtins_to_link) {
- gl_shader *sh = state->builtins_to_link[0];
+ if (state->uses_builtin_functions) {
+ gl_shader *sh = _mesa_glsl_get_builtin_function_shader();
print_function_prototypes(state, loc, sh->symbols->get_function(name));
}
}