d3d9: Avoid locking wined3d mutex around wined3d_swapchain_incref().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-11-29 14:33:43 +01:00 committed by Alexandre Julliard
parent 240ebb189a
commit bcbfcd3869
1 changed files with 0 additions and 2 deletions

View File

@ -100,9 +100,7 @@ static ULONG WINAPI d3d9_swapchain_AddRef(IDirect3DSwapChain9Ex *iface)
if (swapchain->parent_device)
IDirect3DDevice9Ex_AddRef(swapchain->parent_device);
wined3d_mutex_lock();
wined3d_swapchain_incref(swapchain->wined3d_swapchain);
wined3d_mutex_unlock();
}
return refcount;