Commit dc0d2a27 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

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

parent b8bc92dc
......@@ -649,7 +649,7 @@ static void shader_glsl_get_register_name(
* prior to that, it was hard-coded as "A0.x" because there's only 1 register */
if (WINED3DSHADER_VERSION_MAJOR(This->baseShader.hex_version) >= 2) {
char relStr[100], relReg[50], relMask[6];
shader_glsl_add_src_param_old(arg, addr_token, 0, relReg, relMask, relStr);
shader_glsl_add_src_param(arg, addr_token, 0, WINED3DSP_WRITEMASK_0, relReg, relMask, relStr);
sprintf(tmpStr, "%s[%s + %u]", prefix, relStr, reg);
} else
sprintf(tmpStr, "%s[A0.x + %u]", prefix, 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