/* Should be lowered by do_lower_texture_projection */
assert(!ir->projector);
- vec4_instruction *inst;
+ vec4_instruction *inst = NULL;
switch (ir->op) {
case ir_tex:
case ir_txl:
inst->base_mrf = 2;
inst->mlen = inst->header_present + 1; /* always at least one */
inst->sampler = sampler;
- inst->dst = dst_reg(this, glsl_type::get_instance(ir->type->base_type,4,1));
+ inst->dst = dst_reg(this, ir->type);
inst->shadow_compare = ir->shadow_comparitor != NULL;
if (ir->offset != NULL)