diff options
author | Dave Airlie <airlied@gmail.com> | 2015-02-05 12:04:58 +0200 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-02-19 00:28:34 -0500 |
commit | ba3bab264d039926be391dcd6020dbf1c6313c41 (patch) | |
tree | f1784f9ee19daa60b57928df87ff6e7e9e250321 /src/glsl/glsl_parser_extras.cpp | |
parent | 24626444c3a21b984d023feba1843776c7f5c7ea (diff) | |
download | external_mesa3d-ba3bab264d039926be391dcd6020dbf1c6313c41.zip external_mesa3d-ba3bab264d039926be391dcd6020dbf1c6313c41.tar.gz external_mesa3d-ba3bab264d039926be391dcd6020dbf1c6313c41.tar.bz2 |
glsl/ast: Support double floats
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index cb19ce1..29e6dd2 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -962,6 +962,10 @@ ast_expression::print(void) const printf("%f ", primary_expression.float_constant); break; + case ast_double_constant: + printf("%f ", primary_expression.double_constant); + break; + case ast_bool_constant: printf("%s ", primary_expression.bool_constant |