From 637694126667a251827439f6405a1c494412af0b Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Thu, 23 Apr 2009 16:03:12 +0200 Subject: [PATCH] wined3d: Avoid using an implicit value to set fogcoord to 0.0. --- dlls/wined3d/arb_program_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 1db1e46e970..fc3417cc3a1 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -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. -- 2.11.4.GIT