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_queue_Release().
This commit is contained in:
parent
cdb559c39d
commit
0ff20e6b8d
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
@ -6272,7 +6272,7 @@ static void d3d12_command_queue_op_array_destroy(struct d3d12_command_queue_op_a
|
||||
static ULONG STDMETHODCALLTYPE d3d12_command_queue_Release(ID3D12CommandQueue *iface)
|
||||
{
|
||||
struct d3d12_command_queue *command_queue = impl_from_ID3D12CommandQueue(iface);
|
||||
unsigned int refcount = InterlockedDecrement((LONG *)&command_queue->refcount);
|
||||
unsigned int refcount = vkd3d_atomic_decrement_u32(&command_queue->refcount);
|
||||
|
||||
TRACE("%p decreasing refcount to %u.\n", command_queue, refcount);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user