wined3d: Avoid using an implicit value to set fogcoord to 0.0.
This commit is contained in:
parent
211268a74e
commit
6376941266
|
@ -2125,7 +2125,7 @@ static GLuint shader_arb_generate_vshader(IWineD3DVertexShader *iface, SHADER_BU
|
||||||
if(args->fog_src == VS_FOG_Z) {
|
if(args->fog_src == VS_FOG_Z) {
|
||||||
shader_addline(buffer, "MOV result.fogcoord, TMP_OUT.z;\n");
|
shader_addline(buffer, "MOV result.fogcoord, TMP_OUT.z;\n");
|
||||||
} else if (!reg_maps->fog) {
|
} 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.
|
/* Write the final position.
|
||||||
|
|
Loading…
Reference in New Issue