Commit 7856c1c2 authored by Stefan Doesinger's avatar Stefan Doesinger Committed by Alexandre Julliard

wined3d: Fix texm3x3pad.

The register number is already in the name we got from get_register_name, don't add it twice.
parent f75dadfe
......@@ -1653,8 +1653,8 @@ static void pshader_hw_texm3x3pad(const struct wined3d_shader_instruction *ins)
shader_arb_get_register_name(ins, &tmp_reg, dst_name, &is_color);
shader_arb_get_src_param(ins, &ins->src[0], 0, src0_name);
shader_addline(buffer, "DP3 %s%u.%c, fragment.texcoord[%u], %s;\n",
dst_name, tmp_reg.idx, 'x' + current_state->current_row, reg, src0_name);
shader_addline(buffer, "DP3 %s.%c, fragment.texcoord[%u], %s;\n",
dst_name, 'x' + current_state->current_row, reg, src0_name);
current_state->texcoord_w[current_state->current_row++] = reg;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment