mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 11:51:48 +02:00
D3D12: Don't clear texture SRV on destruction, as it may still be in use
This commit is contained in:
parent
54c2800bb4
commit
31bc0cf2c3
1 changed files with 0 additions and 11 deletions
|
@ -261,17 +261,6 @@ void D3DTexture2D::TransitionToResourceState(ID3D12GraphicsCommandList* command_
|
||||||
D3DTexture2D::~D3DTexture2D()
|
D3DTexture2D::~D3DTexture2D()
|
||||||
{
|
{
|
||||||
DX12::D3D::command_list_mgr->DestroyResourceAfterCurrentCommandListExecuted(m_tex12);
|
DX12::D3D::command_list_mgr->DestroyResourceAfterCurrentCommandListExecuted(m_tex12);
|
||||||
|
|
||||||
if (m_srv12_cpu.ptr)
|
|
||||||
{
|
|
||||||
D3D12_SHADER_RESOURCE_VIEW_DESC null_srv_desc = {};
|
|
||||||
null_srv_desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
|
|
||||||
null_srv_desc.ViewDimension = D3D12_SRV_DIMENSION_TEXTURE2D;
|
|
||||||
|
|
||||||
null_srv_desc.Shader4ComponentMapping = D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING;
|
|
||||||
|
|
||||||
DX12::D3D::device12->CreateShaderResourceView(NULL, &null_srv_desc, m_srv12_cpu);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace DX12
|
} // namespace DX12
|
||||||
|
|
Loading…
Reference in a new issue