summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/DXTexture.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@users.noreply.github.com>2017-09-03 14:13:17 +1000
committerGitHub <noreply@github.com>2017-09-03 14:13:17 +1000
commitce59121748695118c5cc4e010cdd84449d16911c (patch)
treed628c371c7363a194d22e18d781f4d2fdd483d88 /Source/Core/VideoBackends/D3D/DXTexture.cpp
parent005d0b39f7d1bb5fcb1b40ea540c5ae3c1a9c309 (diff)
parent64de8a9d0b8ac29fc82c414b82408a524ba1c711 (diff)
Merge pull request #6004 from lioncash/d3d
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);