From: Ian Romanick Date: Thu, 25 Mar 2010 00:46:39 +0000 (-0700) Subject: Use glsl_type::get_instance instead of _mesa_glsl_get_vector_type X-Git-Tag: 062012170305~10660^2~625^2~593 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4e2627045af3d12aa2a2aceb809e5e436aca133;p=profile%2Fivi%2Fmesa.git Use glsl_type::get_instance instead of _mesa_glsl_get_vector_type --- diff --git a/hir_field_selection.cpp b/hir_field_selection.cpp index aa53120..5f548bf 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