projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
glsl: Bail after reporting an error for non-constant const_in parameters.
[mesa.git]
/
src
/
glsl
/
ast_function.cpp
diff --git
a/src/glsl/ast_function.cpp
b/src/glsl/ast_function.cpp
index c49a33d048639d2e35812ae175d3d1bde8743b98..8b79d8505810854ed7cf2010c00911928e6447eb 100644
(file)
--- a/
src/glsl/ast_function.cpp
+++ b/
src/glsl/ast_function.cpp
@@
-164,6
+164,7
@@
match_function_by_name(exec_list *instructions, const char *name,
_mesa_glsl_error(loc, state,
"parameter `%s' must be a constant expression",
formal->name);
+ return ir_call::get_error_instruction(ctx);
}
if ((formal->mode == ir_var_out)