mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_heap_Release().
This commit is contained in:
parent
fd385ab994
commit
06eb8e5f8c
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
@ -345,7 +345,7 @@ static void d3d12_heap_destroy(struct d3d12_heap *heap)
|
||||
static ULONG STDMETHODCALLTYPE d3d12_heap_Release(ID3D12Heap *iface)
|
||||
{
|
||||
struct d3d12_heap *heap = impl_from_ID3D12Heap(iface);
|
||||
unsigned int refcount = InterlockedDecrement((LONG *)&heap->refcount);
|
||||
unsigned int refcount = vkd3d_atomic_decrement_u32(&heap->refcount);
|
||||
|
||||
TRACE("%p decreasing refcount to %u.\n", heap, refcount);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user