summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir_reader.cpp
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-04-21 11:18:50 +0200
committerSamuel Pitoiset <[email protected]>2017-04-21 19:34:15 +0200
commita7bc51aef8ef7e3374e034bfbe33096e985ffb0b (patch)
treed37cd02757c0c56cf0928a871123b631be4a2017 /src/compiler/glsl/ir_reader.cpp
parentcacc823c39044307e6befe12c3f51317f09973e2 (diff)
glsl: make use of glsl_type::is_float()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_reader.cpp')
-rw-r--r--src/compiler/glsl/ir_reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir_reader.cpp b/src/compiler/glsl/ir_reader.cpp
index 6d3d0481779..b87933ba511 100644
--- a/src/compiler/glsl/ir_reader.cpp
+++ b/src/compiler/glsl/ir_reader.cpp
@@ -833,7 +833,7 @@ ir_reader::read_constant(s_expression *expr)
return NULL;
}
- if (type->base_type == GLSL_TYPE_FLOAT) {
+ if (type->is_float()) {
s_number *value = SX_AS_NUMBER(expr);
if (value == NULL) {
ir_read_error(values, "expected numbers");