glsl: make use of glsl_type::is_float()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user