mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d: Release current command allocator in d3d12_command_list_Close().
d3d12_command_allocator_free_command_buffer() is not a very accurate name. Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
e061e9f3cb
commit
5d85da0d84
@@ -1426,6 +1426,12 @@ static HRESULT STDMETHODCALLTYPE d3d12_command_list_Close(ID3D12GraphicsCommandL
|
||||
return hresult_from_vk_result(vr);
|
||||
}
|
||||
|
||||
if (list->allocator)
|
||||
{
|
||||
d3d12_command_allocator_free_command_buffer(list->allocator, list);
|
||||
list->allocator = NULL;
|
||||
}
|
||||
|
||||
list->is_recording = false;
|
||||
|
||||
if (!list->is_valid)
|
||||
@@ -1459,12 +1465,6 @@ static HRESULT STDMETHODCALLTYPE d3d12_command_list_Reset(ID3D12GraphicsCommandL
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (list->allocator)
|
||||
{
|
||||
d3d12_command_allocator_free_command_buffer(list->allocator, list);
|
||||
list->allocator = NULL;
|
||||
}
|
||||
|
||||
if (SUCCEEDED(hr = d3d12_command_allocator_allocate_command_buffer(allocator_impl, list)))
|
||||
{
|
||||
list->allocator = allocator_impl;
|
||||
|
Reference in New Issue
Block a user