ddraw: Enable WINED3D_RS_NORMALIZENORMALS on d3d versions older than d3d7.

This commit is contained in:
Matteo Bruni 2015-03-30 20:18:04 +02:00 committed by Alexandre Julliard
parent 382c8fde08
commit fbffd8bae4

View file

@ -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;
}