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:
parent
240ebb189a
commit
bcbfcd3869
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue