Henri Verbeet : d3d11: Increment the device reference count in d3d11_input_layout_AddRef().
Module: wine Branch: master Commit: 2e877152de1aee128968f8525e5d0b73f43010c5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e877152de1aee128968f8525e... Author: Henri Verbeet <hverbeet(a)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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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();
participants (1)
-
Alexandre Julliard