From 64de8a9d0b8ac29fc82c414b82408a524ba1c711 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 2 Sep 2017 14:22:18 -0400 Subject: D3D: Eliminate redundant ID3D11DeviceChild* casts --- Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp') diff --git a/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp b/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp index fe17144bc0..94ef4ba516 100644 --- a/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp +++ b/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp @@ -130,8 +130,7 @@ void D3DVertexFormat::SetInputLayout(D3DBlob* vs_bytecode) m_elems.data(), m_num_elems, vs_bytecode->Data(), vs_bytecode->Size(), &m_layout); if (FAILED(hr)) PanicAlert("Failed to create input layout, %s %d\n", __FILE__, __LINE__); - DX11::D3D::SetDebugObjectName((ID3D11DeviceChild*)m_layout, - "input layout used to emulate the GX pipeline"); + DX11::D3D::SetDebugObjectName(m_layout, "input layout used to emulate the GX pipeline"); } DX11::D3D::stateman->SetInputLayout(m_layout); } -- cgit v1.2.3