Commit 7433eb76 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use the proper OUT swizzle in handle_ps3_input().

parent 59268f79
...@@ -3405,13 +3405,13 @@ static void handle_ps3_input(SHADER_BUFFER *buffer, const WineD3D_GL_Info *gl_in ...@@ -3405,13 +3405,13 @@ static void handle_ps3_input(SHADER_BUFFER *buffer, const WineD3D_GL_Info *gl_in
semantic_name_out = output_signature[j].semantic_name; semantic_name_out = output_signature[j].semantic_name;
semantic_idx_out = output_signature[j].semantic_idx; semantic_idx_out = output_signature[j].semantic_idx;
shader_glsl_write_mask_to_str(output_signature[i].mask, reg_mask_out); shader_glsl_write_mask_to_str(output_signature[j].mask, reg_mask_out);
if (semantic_idx_in == semantic_idx_out if (semantic_idx_in == semantic_idx_out
&& !strcmp(semantic_name_in, semantic_name_out)) && !strcmp(semantic_name_in, semantic_name_out))
{ {
shader_addline(buffer, "%s%s = OUT[%u]%s;\n", shader_addline(buffer, "%s%s = OUT[%u]%s;\n",
destination, reg_mask, j, reg_mask); destination, reg_mask, j, reg_mask_out);
found = TRUE; found = TRUE;
} }
} }
......
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