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_root_signature_Release().
This commit is contained in:
parent
37e8826301
commit
9e135f6143
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
@ -110,7 +110,7 @@ static void d3d12_root_signature_cleanup(struct d3d12_root_signature *root_signa
|
|||||||
static ULONG STDMETHODCALLTYPE d3d12_root_signature_Release(ID3D12RootSignature *iface)
|
static ULONG STDMETHODCALLTYPE d3d12_root_signature_Release(ID3D12RootSignature *iface)
|
||||||
{
|
{
|
||||||
struct d3d12_root_signature *root_signature = impl_from_ID3D12RootSignature(iface);
|
struct d3d12_root_signature *root_signature = impl_from_ID3D12RootSignature(iface);
|
||||||
unsigned int refcount = InterlockedDecrement((LONG *)&root_signature->refcount);
|
unsigned int refcount = vkd3d_atomic_decrement_u32(&root_signature->refcount);
|
||||||
|
|
||||||
TRACE("%p decreasing refcount to %u.\n", root_signature, refcount);
|
TRACE("%p decreasing refcount to %u.\n", root_signature, refcount);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user