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_decref().
This commit is contained in:
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
@ -1012,7 +1012,7 @@ static ULONG d3d12_resource_incref(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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user