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:
parent
dc0310c029
commit
2e877152de
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue