Skip to content
Snippets Groups Projects
Commit aaba7fdd authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard
Browse files

dxgi: Avoid locking wined3d mutex around wined3d_swapchain_incref().

parent bcbfcd38
No related branches found
No related tags found
No related merge requests found
......@@ -143,14 +143,10 @@ static ULONG STDMETHODCALLTYPE d3d11_swapchain_AddRef(IDXGISwapChain1 *iface)
struct d3d11_swapchain *swapchain = d3d11_swapchain_from_IDXGISwapChain1(iface);
ULONG refcount = InterlockedIncrement(&swapchain->refcount);
TRACE("%p increasing refcount to %u\n", swapchain, refcount);
TRACE("%p increasing refcount to %u.\n", swapchain, refcount);
if (refcount == 1)
{
wined3d_mutex_lock();
wined3d_swapchain_incref(swapchain->wined3d_swapchain);
wined3d_mutex_unlock();
}
return refcount;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment