Merge pull request #4073 from amaiorano/fix-d3d-debugobjectname
Fix D3D::SetDebugObjectName to bind to the EFB color_read_texture rat…
This commit is contained in:
commit
d078c6cb35
|
@ -163,10 +163,10 @@ FramebufferManager::FramebufferManager()
|
||||||
CHECK(hr == S_OK, "create EFB color read texture (hr=%#x)", hr);
|
CHECK(hr == S_OK, "create EFB color read texture (hr=%#x)", hr);
|
||||||
m_efb.color_read_texture = new D3DTexture2D(buf, D3D11_BIND_RENDER_TARGET);
|
m_efb.color_read_texture = new D3DTexture2D(buf, D3D11_BIND_RENDER_TARGET);
|
||||||
SAFE_RELEASE(buf);
|
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)");
|
"EFB color read texture (used in Renderer::AccessEFB)");
|
||||||
D3D::SetDebugObjectName(
|
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)");
|
"EFB color read texture render target view (used in Renderer::AccessEFB)");
|
||||||
|
|
||||||
// AccessEFB - Sysmem buffer used to retrieve the pixel data from depth_read_texture
|
// AccessEFB - Sysmem buffer used to retrieve the pixel data from depth_read_texture
|
||||||
|
|
Loading…
Reference in New Issue