mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 09:40:21 +01:00
Use glsl_type::get_instance instead of _mesa_glsl_get_vector_type
This commit is contained in:
parent
d2b6bc651a
commit
c4e2627045
1 changed files with 3 additions and 2 deletions
|
|
@ -145,8 +145,9 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr,
|
|||
* generate the type of the resulting value.
|
||||
*/
|
||||
deref->type =
|
||||
_mesa_glsl_get_vector_type(op->type->base_type,
|
||||
deref->selector.swizzle.num_components);
|
||||
glsl_type::get_instance(op->type->base_type,
|
||||
deref->selector.swizzle.num_components,
|
||||
1);
|
||||
} else {
|
||||
/* FINISHME: Logging of error messages should be moved into
|
||||
* FINISHME: generate_swizzle. This allows the generation of more
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue