=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d11: Pass normalized D3D11_DEPTH_STENCIL_DESC to wine_rb_put().

Alexandre Julliard julliard at winehq.org
Fri Sep 7 16:49:26 CDT 2018


Module: wine
Branch: master
Commit: ffe182009edecc35f27edf48208fa8e941edd441
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ffe182009edecc35f27edf48208fa8e941edd441

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Thu Sep  6 22:01:56 2018 +0200

d3d11: Pass normalized D3D11_DEPTH_STENCIL_DESC to wine_rb_put().

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d11/state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3d11/state.c b/dlls/d3d11/state.c
index 9848690..c36b87f 100644
--- a/dlls/d3d11/state.c
+++ b/dlls/d3d11/state.c
@@ -762,7 +762,7 @@ HRESULT d3d_depthstencil_state_create(struct d3d_device *device, const D3D11_DEP
         return hr;
     }
 
-    if (wine_rb_put(&device->depthstencil_states, desc, &object->entry) == -1)
+    if (wine_rb_put(&device->depthstencil_states, &tmp_desc, &object->entry) == -1)
     {
         ERR("Failed to insert depthstencil state entry.\n");
         d3d_depthstencil_state_cleanup(object);




More information about the wine-cvs mailing list