File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3363,7 +3363,7 @@ void GSDevice12::ExecuteCommandListAndRestartRenderPass(bool wait_for_completion
33633363{
33643364 Console.Warning (" D3D12: Executing command buffer due to '%s'" , reason);
33653365
3366- const bool was_in_render_pass = m_in_render_pass ;
3366+ const bool was_in_render_pass = InRenderPass () ;
33673367 EndRenderPass ();
33683368 ExecuteCommandList (GetWaitType (wait_for_completion, GSConfig.HWSpinCPUForReadbacks ));
33693369 InvalidateCachedState ();
@@ -4278,7 +4278,7 @@ void GSDevice12::RenderHW(GSHWDrawConfig& config)
42784278 (draw_ds && static_cast <GSTexture12*>(draw_ds)->GetSRVDescriptor () == m_tfx_textures[0 ])))
42794279 PSSetShaderResource (0 , nullptr , false );
42804280
4281- if (m_in_render_pass && (m_current_render_target == draw_rt || m_current_depth_target == draw_ds))
4281+ if (InRenderPass () && (m_current_render_target == draw_rt || m_current_depth_target == draw_ds))
42824282 {
42834283 // avoid restarting the render pass just to switch from rt+depth to rt and vice versa
42844284 // keep the depth even if doing colclip hw draws, because the next draw will probably re-enable depth
@@ -4338,7 +4338,7 @@ void GSDevice12::RenderHW(GSHWDrawConfig& config)
43384338 }
43394339
43404340 // Begin render pass if new target or out of the area.
4341- if (!m_in_render_pass )
4341+ if (!InRenderPass () )
43424342 {
43434343 GSVector4 clear_color = draw_rt ? draw_rt->GetUNormClearColor () : GSVector4::zero ();
43444344 if (pipe.ps .colclip_hw )
You can’t perform that action at this time.
0 commit comments