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_root_signature_deserializer_Release().
This commit is contained in:
parent
c2e82cf06a
commit
afd0e45cd6
Notes:
Alexandre Julliard
2024-02-01 23:08:25 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/623
@ -133,7 +133,7 @@ static ULONG STDMETHODCALLTYPE d3d12_root_signature_deserializer_AddRef(ID3D12Ro
|
||||
static ULONG STDMETHODCALLTYPE d3d12_root_signature_deserializer_Release(ID3D12RootSignatureDeserializer *iface)
|
||||
{
|
||||
struct d3d12_root_signature_deserializer *deserializer = impl_from_ID3D12RootSignatureDeserializer(iface);
|
||||
unsigned int refcount = InterlockedDecrement((LONG *)&deserializer->refcount);
|
||||
unsigned int refcount = vkd3d_atomic_decrement_u32(&deserializer->refcount);
|
||||
|
||||
TRACE("%p decreasing refcount to %u.\n", deserializer, refcount);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user