summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2015-02-05 12:04:58 +0200
committerIlia Mirkin <[email protected]>2015-02-19 00:28:34 -0500
commitba3bab264d039926be391dcd6020dbf1c6313c41 (patch)
treef1784f9ee19daa60b57928df87ff6e7e9e250321 /src/glsl/glsl_parser_extras.cpp
parent24626444c3a21b984d023feba1843776c7f5c7ea (diff)
glsl/ast: Support double floats
Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r--src/glsl/glsl_parser_extras.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index cb19ce15cb0..29e6dd2ff7d 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