mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Release the op mutex on allocation failure.
This commit is contained in:
parent
01800942a9
commit
52d5cb749f
Notes:
Alexandre Julliard
2023-07-04 23:25:17 +02:00
Approved-by: Conor McCarthy (@cmccarthy) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/251
@ -6412,7 +6412,7 @@ static void STDMETHODCALLTYPE d3d12_command_queue_ExecuteCommandLists(ID3D12Comm
|
||||
if (!(op = d3d12_command_queue_op_array_require_space(&command_queue->op_queue)))
|
||||
{
|
||||
ERR("Failed to add op.\n");
|
||||
return;
|
||||
goto done;
|
||||
}
|
||||
op->opcode = VKD3D_CS_OP_EXECUTE;
|
||||
op->u.execute.buffers = buffers;
|
||||
@ -6420,6 +6420,7 @@ static void STDMETHODCALLTYPE d3d12_command_queue_ExecuteCommandLists(ID3D12Comm
|
||||
|
||||
d3d12_command_queue_submit_locked(command_queue);
|
||||
|
||||
done:
|
||||
vkd3d_mutex_unlock(&command_queue->op_mutex);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user