vkd3d: Use vkd3d_atomic_decrement_u32() in d3d12_resource_decref().

This commit is contained in:
Henri Verbeet 2024-01-29 17:19:30 +01:00 committed by Alexandre Julliard
parent a9582a7355
commit 201fab7d5d
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

View File

@ -1012,7 +1012,7 @@ static ULONG d3d12_resource_incref(struct d3d12_resource *resource)
static ULONG d3d12_resource_decref(struct d3d12_resource *resource) static ULONG d3d12_resource_decref(struct d3d12_resource *resource)
{ {
unsigned int refcount = InterlockedDecrement((LONG *)&resource->internal_refcount); unsigned int refcount = vkd3d_atomic_decrement_u32(&resource->internal_refcount);
TRACE("%p decreasing refcount to %u.\n", resource, refcount); TRACE("%p decreasing refcount to %u.\n", resource, refcount);