This commit is contained in:
lightningterror
2026-01-09 00:57:18 +01:00
parent ce03337b28
commit 4aa49a917c
4 changed files with 10 additions and 5 deletions

View File

@@ -2737,7 +2737,7 @@ void GSDevice11::RenderHW(GSHWDrawConfig& config)
else if (config.destination_alpha == GSHWDrawConfig::DestinationAlphaMode::Depth)
{
PSSetShaderResource(2, config.rt);
config.rt = nullptr;
config.rt = (config.rt == m_state.cached_rt_view) ? nullptr : m_state.cached_rt_view;
OMSetRenderTargets(config.rt, config.ds, &config.scissor, read_only_dsv);
}

View File

@@ -4145,7 +4145,12 @@ void GSDevice12::RenderHW(GSHWDrawConfig& config)
else if (config.destination_alpha == GSHWDrawConfig::DestinationAlphaMode::Depth)
{
PSSetShaderResource(2, draw_rt, true);
draw_rt = nullptr;
if ((draw_rt == m_current_render_target))
Console.Warning("DATE RT SAME");
else
Console.Warning("DATE RT NOT SAME");
draw_rt = (draw_rt == m_current_render_target) ? nullptr : m_current_render_target;
OMSetRenderTargets(draw_rt, draw_ds, config.scissor, config.tex && config.tex == config.ds);
}

View File

@@ -2631,7 +2631,7 @@ void GSDeviceOGL::RenderHW(GSHWDrawConfig& config)
else if (config.destination_alpha == GSHWDrawConfig::DestinationAlphaMode::Depth)
{
PSSetShaderResource(2, config.rt);
config.rt = nullptr;
config.rt = (config.rt == GLState::rt) ? nullptr : GLState::rt;
OMSetRenderTargets(config.rt, config.ds, &config.scissor);
}

View File

@@ -5716,8 +5716,8 @@ void GSDeviceVK::RenderHW(GSHWDrawConfig& config)
break;
case GSHWDrawConfig::DestinationAlphaMode::Depth:
PSSetShaderResource(2, config.rt, true);
draw_rt = nullptr;
PSSetShaderResource(2, draw_rt, true);
draw_rt = (draw_rt == m_current_render_target) ? nullptr : m_current_render_target;
OMSetRenderTargets(draw_rt, draw_ds, config.scissor, static_cast<FeedbackLoopFlag>(pipe.feedback_loop_flags));
break;
}