From 2030a5e1b8ded347729880423c610b8986050b5d Mon Sep 17 00:00:00 2001 From: amaiorano Date: Sun, 31 Jul 2016 10:48:09 -0400 Subject: [PATCH] Fix D3D::SetDebugObjectName to bind to the EFB color_read_texture rather than the depth_read_texture (probably a copy paste error) --- Source/Core/VideoBackends/D3D/FramebufferManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoBackends/D3D/FramebufferManager.cpp b/Source/Core/VideoBackends/D3D/FramebufferManager.cpp index bb761b8a5b..3f7ab4c528 100644 --- a/Source/Core/VideoBackends/D3D/FramebufferManager.cpp +++ b/Source/Core/VideoBackends/D3D/FramebufferManager.cpp @@ -163,10 +163,10 @@ FramebufferManager::FramebufferManager() CHECK(hr == S_OK, "create EFB color read texture (hr=%#x)", hr); m_efb.color_read_texture = new D3DTexture2D(buf, D3D11_BIND_RENDER_TARGET); SAFE_RELEASE(buf); - D3D::SetDebugObjectName((ID3D11DeviceChild*)m_efb.depth_read_texture->GetTex(), + D3D::SetDebugObjectName((ID3D11DeviceChild*)m_efb.color_read_texture->GetTex(), "EFB color read texture (used in Renderer::AccessEFB)"); D3D::SetDebugObjectName( - (ID3D11DeviceChild*)m_efb.depth_read_texture->GetRTV(), + (ID3D11DeviceChild*)m_efb.color_read_texture->GetRTV(), "EFB color read texture render target view (used in Renderer::AccessEFB)"); // AccessEFB - Sysmem buffer used to retrieve the pixel data from depth_read_texture