summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D12/D3DTexture.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2016-02-17 02:43:56 +1000
committerStenzek <stenzek@gmail.com>2016-02-28 17:18:37 +1000
commit31bc0cf2c3d8995763fac0d1b04bfd83196b3d2a (patch)
treec92f1f770a20422fe9dbf5ebe40bb05d62032466 /Source/Core/VideoBackends/D3D12/D3DTexture.cpp
parent54c2800bb4a7a5bd7ead7319a28da9269a3f8ed3 (diff)
D3D12: Don't clear texture SRV on destruction, as it may still be in use
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/D3DTexture.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D12/D3DTexture.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/Source/Core/VideoBackends/D3D12/D3DTexture.cpp b/Source/Core/VideoBackends/D3D12/D3DTexture.cpp
index 6ad5da8d59..f913715e75 100644
--- a/Source/Core/VideoBackends/D3D12/D3DTexture.cpp
+++ b/Source/Core/VideoBackends/D3D12/D3DTexture.cpp
@@ -261,17 +261,6 @@ void D3DTexture2D::TransitionToResourceState(ID3D12GraphicsCommandList* command_
D3DTexture2D::~D3DTexture2D()
{
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