wined3d: Pass the correct mask to shader_glsl_add_src_param() in shader_glsl_callnz().

This commit is contained in:
H. Verbeet 2007-01-15 19:36:35 +01:00 committed by Alexandre Julliard
parent 50e0deafca
commit c3bfef8d7e
1 changed files with 1 additions and 1 deletions

View File

@ -1492,7 +1492,7 @@ void shader_glsl_callnz(SHADER_OPCODE_ARG* arg) {
char src1_mask[6]; char src1_mask[6];
DWORD snum = (arg->src[0]) & WINED3DSP_REGNUM_MASK; DWORD snum = (arg->src[0]) & WINED3DSP_REGNUM_MASK;
shader_glsl_add_src_param_old(arg, arg->src[1], arg->src_addr[1], src1_reg, src1_mask, src1_str); shader_glsl_add_src_param(arg, arg->src[1], arg->src_addr[1], WINED3DSP_WRITEMASK_0, src1_reg, src1_mask, src1_str);
shader_addline(arg->buffer, "if (%s) subroutine%lu();\n", src1_str, snum); shader_addline(arg->buffer, "if (%s) subroutine%lu();\n", src1_str, snum);
} }