From fbffd8bae4144ef28a7f45af4514b0be9ba26506 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Mon, 30 Mar 2015 20:18:04 +0200 Subject: [PATCH] ddraw: Enable WINED3D_RS_NORMALIZENORMALS on d3d versions older than d3d7. --- dlls/ddraw/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index 688f02b9086..f0f4ac3b982 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -6839,6 +6839,8 @@ static HRESULT d3d_device_init(struct d3d_device *device, struct ddraw *ddraw, wined3d_device_set_render_state(ddraw->wined3d_device, WINED3D_RS_COLORKEYENABLE, TRUE); else if (version == 2) wined3d_device_set_render_state(ddraw->wined3d_device, WINED3D_RS_SPECULARENABLE, TRUE); + if (version < 7) + wined3d_device_set_render_state(ddraw->wined3d_device, WINED3D_RS_NORMALIZENORMALS, TRUE); return D3D_OK; }