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

This commit is contained in:
Fabian Bieler 2007-04-12 19:08:51 +02:00 committed by Alexandre Julliard
parent a79654d339
commit c4bbed4854
1 changed files with 2 additions and 0 deletions

View File

@ -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)