[PATCH] ddraw: Set table fog state instead of vertex fog in d3d_device3_SetLightState().

Paul Gofman gofmanp at gmail.com
Mon May 20 20:21:56 CDT 2019


I am sorry, I am likely wrong about this one. Please disregard this patch,
I will do some more testing.

On Tue, 21 May 2019 at 02:57, Paul Gofman <gofmanp at gmail.com> wrote:

> _FOGVERTEXMODE is a d3d7+ state.
>
> Signed-off-by: Paul Gofman <gofmanp at gmail.com>
> ---
>  dlls/ddraw/device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
> index ade56bbc9e..94a2d4ea78 100644
> --- a/dlls/ddraw/device.c
> +++ b/dlls/ddraw/device.c
> @@ -2982,7 +2982,7 @@ static HRESULT WINAPI
> d3d_device3_SetLightState(IDirect3DDevice3 *iface,
>                  rs = D3DRENDERSTATE_AMBIENT;
>                  break;
>              case D3DLIGHTSTATE_FOGMODE:       /* 4 */
> -                rs = D3DRENDERSTATE_FOGVERTEXMODE;
> +                rs = D3DRENDERSTATE_FOGTABLEMODE;
>                  break;
>              case D3DLIGHTSTATE_FOGSTART:      /* 5 */
>                  rs = D3DRENDERSTATE_FOGSTART;
> --
> 2.21.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190521/3c4a179a/attachment.html>


More information about the wine-devel mailing list