mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_resource_Release().
This commit is contained in:
parent
84234a8875
commit
886c1fdcc4
Notes:
Alexandre Julliard
2024-02-01 00:32:06 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/619
@ -1302,7 +1302,7 @@ static ULONG STDMETHODCALLTYPE d3d12_resource_AddRef(ID3D12Resource1 *iface)
|
||||
static ULONG STDMETHODCALLTYPE d3d12_resource_Release(ID3D12Resource1 *iface)
|
||||
{
|
||||
struct d3d12_resource *resource = impl_from_ID3D12Resource1(iface);
|
||||
unsigned int refcount = InterlockedDecrement((LONG *)&resource->refcount);
|
||||
unsigned int refcount = vkd3d_atomic_decrement_u32(&resource->refcount);
|
||||
|
||||
TRACE("%p decreasing refcount to %u.\n", resource, refcount);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user