d3d8: 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:42 +01:00 committed by Alexandre Julliard
parent 03c37f22eb
commit 240ebb189a
1 changed files with 0 additions and 2 deletions

View File

@ -57,9 +57,7 @@ static ULONG WINAPI d3d8_swapchain_AddRef(IDirect3DSwapChain8 *iface)
{
if (swapchain->parent_device)
IDirect3DDevice8_AddRef(swapchain->parent_device);
wined3d_mutex_lock();
wined3d_swapchain_incref(swapchain->wined3d_swapchain);
wined3d_mutex_unlock();
}
return ref;