glsl: make use of glsl_type::is_double()
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:
@@ -1505,7 +1505,7 @@ emit_inline_matrix_constructor(const glsl_type *type,
|
||||
*/
|
||||
glsl_base_type param_base_type = first_param->type->base_type;
|
||||
assert(param_base_type == GLSL_TYPE_FLOAT ||
|
||||
param_base_type == GLSL_TYPE_DOUBLE);
|
||||
first_param->type->is_double());
|
||||
ir_variable *rhs_var =
|
||||
new(ctx) ir_variable(glsl_type::get_instance(param_base_type, 4, 1),
|
||||
"mat_ctor_vec",
|
||||
|
||||
Reference in New Issue
Block a user