[PATCH 1/4] ddraw: SPECULARENABLE defaults to true in IDirect3DDevice2

Stefan Dösinger stefan at codeweavers.com
Thu Jun 20 05:17:05 CDT 2013


---
 dlls/ddraw/ddraw.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 086a483..88c883b 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -4250,7 +4250,12 @@ static HRESULT WINAPI d3d2_CreateDevice(IDirect3D2 *iface, REFCLSID riid,
     wined3d_mutex_lock();
     hr = d3d_device_create(ddraw, surface_impl, 2, &device_impl, NULL);
     if (SUCCEEDED(hr))
+    {
         *device = &device_impl->IDirect3DDevice2_iface;
+        hr = IDirect3DDevice2_SetRenderState(*device, D3DRENDERSTATE_SPECULARENABLE, TRUE);
+        if (FAILED(hr))
+            ERR("SetRenderState failed\n");
+    }
     else
     {
         WARN("Failed to create device, hr %#x.\n", hr);
-- 
1.8.1.5




More information about the wine-patches mailing list