diff options
author | Paul Berry <[email protected]> | 2012-08-01 14:50:05 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-12-06 12:13:21 -0800 |
commit | e3ded7fe628d5a842f2fae0da355a4034cff27cf (patch) | |
tree | 9f844ea688b37f3a564609d9331fe6440960b471 /src/glsl/ast_function.cpp | |
parent | 5d0fd3270f028cd93efa5301c998be034826a102 (diff) |
glsl: Make use of new _mesa_glsl_parse_state::is_version() function.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Acked-by: Carl Worth <[email protected]>
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 c0e05ad8589..5e1c8918b17 100644 --- a/src/glsl/ast_function.cpp +++ b/src/glsl/ast_function.cpp @@ -277,7 +277,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) { + if (state->is_version(120, 0)) { ir_constant *value = sig->constant_expression_value(actual_parameters, NULL); if (value != NULL) { return value; |