Commit 2e877152 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

Since we release it in d3d11_input_layout_Release(). Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent dc0310c0
...@@ -134,6 +134,7 @@ static ULONG STDMETHODCALLTYPE d3d11_input_layout_AddRef(ID3D11InputLayout *ifac ...@@ -134,6 +134,7 @@ static ULONG STDMETHODCALLTYPE d3d11_input_layout_AddRef(ID3D11InputLayout *ifac
if (refcount == 1) if (refcount == 1)
{ {
ID3D11Device_AddRef(layout->device);
wined3d_mutex_lock(); wined3d_mutex_lock();
wined3d_vertex_declaration_incref(layout->wined3d_decl); wined3d_vertex_declaration_incref(layout->wined3d_decl);
wined3d_mutex_unlock(); wined3d_mutex_unlock();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment