@@ -404,29 +404,16 @@ void D3DXRenderBase::r_dsgraph_render_hud_ui()
404404 const ref_rt rt_null;
405405 RCache.set_RT (0 , 1 );
406406 RCache.set_RT (0 , 2 );
407+ auto zb = HW.pBaseZB ;
408+
407409#if (RENDER == R_R3) || (RENDER == R_R4) || (RENDER==R_GL)
408- if (!RImplementation.o .dx10_msaa )
409- {
410- if (RImplementation.o .albedo_wo )
411- RImplementation.Target ->u_setrt (RImplementation.Target ->rt_Accumulator , rt_null, rt_null, HW.pBaseZB );
412- else
413- RImplementation.Target ->u_setrt (RImplementation.Target ->rt_Color , rt_null, rt_null, HW.pBaseZB );
414- }
415- else
416- {
417- if (RImplementation.o .albedo_wo )
418- RImplementation.Target ->u_setrt (
419- RImplementation.Target ->rt_Accumulator , rt_null, rt_null, RImplementation.Target ->rt_MSAADepth ->pZRT );
420- else
421- RImplementation.Target ->u_setrt (
422- RImplementation.Target ->rt_Color , rt_null, rt_null, RImplementation.Target ->rt_MSAADepth ->pZRT );
423- }
424- #else // (RENDER==R_R3) || (RENDER==R_R4)
425- if (RImplementation.o .albedo_wo )
426- RImplementation.Target ->u_setrt (RImplementation.Target ->rt_Accumulator , rt_null, rt_null, HW.pBaseZB );
427- else
428- RImplementation.Target ->u_setrt (RImplementation.Target ->rt_Color , rt_null, rt_null, HW.pBaseZB );
429- #endif // (RENDER==R_R3) || (RENDER==R_R4)
410+ if (RImplementation.o .dx10_msaa )
411+ zb = RImplementation.Target ->rt_MSAADepth ->pZRT ;
412+ #endif
413+
414+ RImplementation.Target ->u_setrt (
415+ RImplementation.o .albedo_wo ? RImplementation.Target ->rt_Accumulator : RImplementation.Target ->rt_Color ,
416+ rt_null, rt_null, zb);
430417#endif // RENDER!=R_R1
431418
432419 rmNear ();
0 commit comments