[PATCH 2/5] wined3d: Handle fog_start==fog_end with table fog(try 2)

Henri Verbeet hverbeet at gmail.com
Tue Jun 18 02:12:04 CDT 2013

On 17 June 2013 22:53, Stefan Dösinger <stefan at codeweavers.com> wrote:
> correctly with fixed function fog. Tested as usual on Geforce9 (OSX,
> Linux), Geforce7 (Linux), r300g, r600g, i965 (OSX), r200.
Which of those is affected by the quirk? I think all of those except
r200 should be able to do GLSL, but you say r200 is the only one that
doesn't pass the tests. You may be able to convince me that this is a
good idea, but so far I don't think it's worth all the extra code.

> +                    if (isnan(fogstart) || isinf(fogstart) || isinf(-fogstart))
You should only need one isinf() here, it's not supposed to care about the sign.

>  #define WINED3D_ADAPTER_CAP_XYZRHW              0x00000001
>  #define WINED3D_ADAPTER_CAP_VS_CLIPPING         0x00000002
> +#define WINED3D_ADAPTER_CAP_BROKEN_FOG          0x00000008
Is this intentional?

More information about the wine-devel mailing list