[PATCH 1/5] ddraw: SPECULARENABLE defaults to true in IDirect3DDevice2 (try 2)

Stefan Dösinger stefan at codeweavers.com
Thu Jun 20 07:00:00 CDT 2013


try 2: Set the renderstate in d3d_device_init.
---
 dlls/ddraw/device.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 8e86f55..7235949 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -6728,6 +6728,8 @@ static HRESULT d3d_device_init(struct d3d_device *device, struct ddraw *ddraw,
             d3d_device_update_depth_stencil(device));
     if (version == 1) /* Color keying is initially enabled for version 1 devices. */
         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);
 
     return D3D_OK;
 }
-- 
1.8.1.5




More information about the wine-patches mailing list