diff options
author | Olivier Galibert <[email protected]> | 2012-05-02 23:11:38 +0200 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-05-08 12:55:46 -0700 |
commit | 6e4852a3a5f3cbe52c53d91d343a37861f207563 (patch) | |
tree | 9f15052bae230f5511ff3f462de278faeae3ac79 /src/glsl/ast_function.cpp | |
parent | 27a198388ed78c83d9a255efc0fb2294d985f3ad (diff) |
glsl: Add a variable context to constant_expression_value().
Signed-off-by: Olivier Galibert <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]> [v1]
Diffstat (limited to 'src/glsl/ast_function.cpp')
-rw-r--r-- | src/glsl/ast_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 58cf6854b85..9e7c5995fc9 100644 --- a/src/glsl/ast_function.cpp +++ b/src/glsl/ast_function.cpp @@ -278,7 +278,7 @@ generate_call(exec_list *instructions, ir_function_signature *sig, * Function calls were first allowed to be constant expressions in GLSL 1.20. */ if (state->language_version >= 120) { - ir_constant *value = sig->constant_expression_value(actual_parameters); + ir_constant *value = sig->constant_expression_value(actual_parameters, NULL); if (value != NULL) { return value; } |