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_device_Release().
This commit is contained in:
parent
7d7833f3c0
commit
4fd4ecc020
Notes:
Alexandre Julliard
2024-01-29 22:53:07 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/609
@ -2563,7 +2563,7 @@ static HRESULT device_worker_stop(struct d3d12_device *device)
|
|||||||
static ULONG STDMETHODCALLTYPE d3d12_device_Release(ID3D12Device5 *iface)
|
static ULONG STDMETHODCALLTYPE d3d12_device_Release(ID3D12Device5 *iface)
|
||||||
{
|
{
|
||||||
struct d3d12_device *device = impl_from_ID3D12Device5(iface);
|
struct d3d12_device *device = impl_from_ID3D12Device5(iface);
|
||||||
unsigned int refcount = InterlockedDecrement((LONG *)&device->refcount);
|
unsigned int refcount = vkd3d_atomic_decrement_u32(&device->refcount);
|
||||||
|
|
||||||
TRACE("%p decreasing refcount to %u.\n", device, refcount);
|
TRACE("%p decreasing refcount to %u.\n", device, refcount);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user