Henri Verbeet : d3d11: Increment the device reference count in d3d11_input_layout_AddRef().

Alexandre Julliard julliard at winehq.org
Thu Oct 12 13:47:51 CDT 2017


Module: wine
Branch: master
Commit: 2e877152de1aee128968f8525e5d0b73f43010c5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2e877152de1aee128968f8525e5d0b73f43010c5

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Oct 12 16:17:10 2017 +0200

d3d11: Increment the device reference count in d3d11_input_layout_AddRef().

Since we release it in d3d11_input_layout_Release().

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d11/inputlayout.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/d3d11/inputlayout.c b/dlls/d3d11/inputlayout.c
index 2f194e0..784779c 100644
--- a/dlls/d3d11/inputlayout.c
+++ b/dlls/d3d11/inputlayout.c
@@ -134,6 +134,7 @@ static ULONG STDMETHODCALLTYPE d3d11_input_layout_AddRef(ID3D11InputLayout *ifac
 
     if (refcount == 1)
     {
+        ID3D11Device_AddRef(layout->device);
         wined3d_mutex_lock();
         wined3d_vertex_declaration_incref(layout->wined3d_decl);
         wined3d_mutex_unlock();




More information about the wine-cvs mailing list