Commit c4bbed48 authored by Fabian Bieler's avatar Fabian Bieler Committed by Alexandre Julliard

wined3d: Mark vertex shader 3.0 as foggy shaders if they write out the fog coord.

parent a79654d3
......@@ -253,6 +253,8 @@ HRESULT shader_get_registers_used(
reg_maps->packed_output[regnum] = 1;
semantics_out[regnum].usage = usage;
semantics_out[regnum].reg = param;
if (usage & (WINED3DDECLUSAGE_FOG << WINED3DSP_DCL_USAGE_SHIFT))
reg_maps->fog = 1;
/* Save sampler usage token */
} else if (WINED3DSPR_SAMPLER == regtype)
......
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