summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/glsl/ast_function.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/glsl/ast_function.cpp b/src/compiler/glsl/ast_function.cpp
index a97e6c96114..f74394fe1d3 100644
--- a/src/compiler/glsl/ast_function.cpp
+++ b/src/compiler/glsl/ast_function.cpp
@@ -2078,6 +2078,10 @@ ast_function_expression::hir(exec_list *instructions,
func_name = id->primary_expression.identifier;
}
+ /* an error was emitted earlier */
+ if (!func_name)
+ return ir_rvalue::error_value(ctx);
+
ir_function_signature *sig =
match_function_by_name(func_name, &actual_parameters, state);