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@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-10-12 16:17:10 +02:00 committed by Alexandre Julliard
parent dc0310c029
commit 2e877152de
1 changed files with 1 additions and 0 deletions

View File

@ -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();