vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_command_allocator_Release().

This commit is contained in:
Henri Verbeet 2024-01-11 20:51:07 +01:00 committed by Alexandre Julliard
parent 315fce8ac5
commit d891e5c2a0
Notes: Alexandre Julliard 2024-01-25 23:12:08 +01:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/605

View File

@ -1645,7 +1645,7 @@ static ULONG STDMETHODCALLTYPE d3d12_command_allocator_AddRef(ID3D12CommandAlloc
static ULONG STDMETHODCALLTYPE d3d12_command_allocator_Release(ID3D12CommandAllocator *iface)
{
struct d3d12_command_allocator *allocator = impl_from_ID3D12CommandAllocator(iface);
unsigned int refcount = InterlockedDecrement((LONG *)&allocator->refcount);
unsigned int refcount = vkd3d_atomic_decrement_u32(&allocator->refcount);
TRACE("%p decreasing refcount to %u.\n", allocator, refcount);