mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
FramebufferManager: Return the depth texture instead of the color texture in GetResolvedEFBDepthTexture() when AA is enabled.
This commit is contained in:
@ -40,8 +40,8 @@ D3DTexture2D* &FramebufferManager::GetResolvedEFBDepthTexture()
|
|||||||
{
|
{
|
||||||
if (g_ActiveConfig.iMultisampleMode)
|
if (g_ActiveConfig.iMultisampleMode)
|
||||||
{
|
{
|
||||||
D3D::context->ResolveSubresource(m_efb.resolved_color_tex->GetTex(), 0, m_efb.color_tex->GetTex(), 0, DXGI_FORMAT_R8G8B8A8_UNORM);
|
D3D::context->ResolveSubresource(m_efb.resolved_depth_tex->GetTex(), 0, m_efb.depth_tex->GetTex(), 0, DXGI_FORMAT_R8G8B8A8_UNORM);
|
||||||
return m_efb.resolved_color_tex;
|
return m_efb.resolved_depth_tex;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return m_efb.depth_tex;
|
return m_efb.depth_tex;
|
||||||
|
Reference in New Issue
Block a user