[PATCH 2/2] d3d11: Increment the device reference count in d3d11_input_layout_AddRef().
Henri Verbeet
hverbeet at codeweavers.com
Thu Oct 12 09:17:10 CDT 2017
Since we release it in d3d11_input_layout_Release().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
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();
--
2.1.4
More information about the wine-patches
mailing list