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_command_list_Release().
This commit is contained in:
parent
87f3a606d7
commit
298dce541d
Notes:
Alexandre Julliard
2024-01-25 23:12:07 +01:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/605
@ -2335,7 +2335,7 @@ static void vkd3d_pipeline_bindings_cleanup(struct vkd3d_pipeline_bindings *bind
|
|||||||
static ULONG STDMETHODCALLTYPE d3d12_command_list_Release(ID3D12GraphicsCommandList5 *iface)
|
static ULONG STDMETHODCALLTYPE d3d12_command_list_Release(ID3D12GraphicsCommandList5 *iface)
|
||||||
{
|
{
|
||||||
struct d3d12_command_list *list = impl_from_ID3D12GraphicsCommandList5(iface);
|
struct d3d12_command_list *list = impl_from_ID3D12GraphicsCommandList5(iface);
|
||||||
unsigned int refcount = InterlockedDecrement((LONG *)&list->refcount);
|
unsigned int refcount = vkd3d_atomic_decrement_u32(&list->refcount);
|
||||||
|
|
||||||
TRACE("%p decreasing refcount to %u.\n", list, refcount);
|
TRACE("%p decreasing refcount to %u.\n", list, refcount);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user