mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_heap_resource_destroyed().
This commit is contained in:
committed by
Alexandre Julliard
parent
30a00160e2
commit
6f7aec58ea
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
@ -358,7 +358,7 @@ static ULONG STDMETHODCALLTYPE d3d12_heap_Release(ID3D12Heap *iface)
|
|||||||
|
|
||||||
static void d3d12_heap_resource_destroyed(struct d3d12_heap *heap)
|
static void d3d12_heap_resource_destroyed(struct d3d12_heap *heap)
|
||||||
{
|
{
|
||||||
if (!InterlockedDecrement((LONG *)&heap->resource_count) && (!heap->refcount || heap->is_private))
|
if (!vkd3d_atomic_decrement_u32(&heap->resource_count) && (!heap->refcount || heap->is_private))
|
||||||
d3d12_heap_destroy(heap);
|
d3d12_heap_destroy(heap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user