summaryrefslogtreecommitdiff
path: root/hir_field_selection.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-24 17:46:39 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-24 17:46:39 -0700
commitc4e2627045af3d12aa2a2aceb809e5e436aca133 (patch)
tree5da894bb3c4385c8847cf4da78e43383c1ffd916 /hir_field_selection.cpp
parentd2b6bc651a23cf45e36c39efd34532ec78d51928 (diff)
Use glsl_type::get_instance instead of _mesa_glsl_get_vector_type
Diffstat (limited to 'hir_field_selection.cpp')
-rw-r--r--hir_field_selection.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/hir_field_selection.cpp b/hir_field_selection.cpp
index aa53120dbd..5f548bfa0f 100644
--- a/hir_field_selection.cpp
+++ b/hir_field_selection.cpp
@@ -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