mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Fix unbinding depth-stencil views.
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:
parent
cd059215bf
commit
bc8c07ffcc
@ -4373,6 +4373,8 @@ static void STDMETHODCALLTYPE d3d12_command_list_OMSetRenderTargets(ID3D12Graphi
|
||||
list->fb_layer_count = max(list->fb_layer_count, rtv_desc->layer_count);
|
||||
}
|
||||
|
||||
list->dsv = VK_NULL_HANDLE;
|
||||
list->dsv_format = VK_FORMAT_UNDEFINED;
|
||||
if (depth_stencil_descriptor)
|
||||
{
|
||||
if ((dsv_desc = d3d12_dsv_desc_from_cpu_handle(*depth_stencil_descriptor))
|
||||
@ -4397,8 +4399,6 @@ static void STDMETHODCALLTYPE d3d12_command_list_OMSetRenderTargets(ID3D12Graphi
|
||||
else
|
||||
{
|
||||
WARN("DSV descriptor is not initialized.\n");
|
||||
list->dsv = VK_NULL_HANDLE;
|
||||
list->dsv_format = VK_FORMAT_UNDEFINED;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user