summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/DXTexture.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-09-02 14:22:18 -0400
committerLioncash <mathew1800@gmail.com>2017-09-02 14:45:14 -0400
commit64de8a9d0b8ac29fc82c414b82408a524ba1c711 (patch)
treedb84de4c04f0edb56ce02d2c522afa795e6f702e /Source/Core/VideoBackends/D3D/DXTexture.cpp
parent1191280e76ab596eed78641d9169d270a3332ab4 (diff)
D3D: Eliminate redundant ID3D11DeviceChild* casts
Diffstat (limited to 'Source/Core/VideoBackends/D3D/DXTexture.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/DXTexture.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/D3D/DXTexture.cpp b/Source/Core/VideoBackends/D3D/DXTexture.cpp
index c8c5ef6105..712af7fc9a 100644
--- a/Source/Core/VideoBackends/D3D/DXTexture.cpp
+++ b/Source/Core/VideoBackends/D3D/DXTexture.cpp
@@ -69,9 +69,8 @@ DXTexture::DXTexture(const TextureConfig& tex_config) : AbstractTexture(tex_conf
m_texture = new D3DTexture2D(pTexture, D3D11_BIND_SHADER_RESOURCE);
// TODO: better debug names
- D3D::SetDebugObjectName((ID3D11DeviceChild*)m_texture->GetTex(),
- "a texture of the TextureCache");
- D3D::SetDebugObjectName((ID3D11DeviceChild*)m_texture->GetSRV(),
+ D3D::SetDebugObjectName(m_texture->GetTex(), "a texture of the TextureCache");
+ D3D::SetDebugObjectName(m_texture->GetSRV(),
"shader resource view of a texture of the TextureCache");
SAFE_RELEASE(pTexture);