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

This commit is contained in:
H. Verbeet 2007-01-15 19:36:04 +01:00 committed by Alexandre Julliard
parent 9f22df26ef
commit a89edf1be9
1 changed files with 1 additions and 1 deletions

View File

@ -1434,7 +1434,7 @@ void shader_glsl_if(SHADER_OPCODE_ARG* arg) {
char src0_reg[50];
char src0_mask[6];
shader_glsl_add_src_param_old(arg, arg->src[0], arg->src_addr[0], src0_reg, src0_mask, src0_str);
shader_glsl_add_src_param(arg, arg->src[0], arg->src_addr[0], WINED3DSP_WRITEMASK_0, src0_reg, src0_mask, src0_str);
shader_addline(arg->buffer, "if (%s) {\n", src0_str);
}