mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
2
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user