Commit 63769412 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

wined3d: Avoid using an implicit value to set fogcoord to 0.0.

parent 211268a7
......@@ -2125,7 +2125,7 @@ static GLuint shader_arb_generate_vshader(IWineD3DVertexShader *iface, SHADER_BU
if(args->fog_src == VS_FOG_Z) {
shader_addline(buffer, "MOV result.fogcoord, TMP_OUT.z;\n");
} else if (!reg_maps->fog) {
shader_addline(buffer, "MOV result.fogcoord, 0.0;\n");
shader_addline(buffer, "MOV result.fogcoord, helper_const.w;\n");
}
/* Write the final position.
......
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