Skip to content

Commit

Permalink
Remove obsolete code. Now in r_dsgraph_render_hud_ui
Browse files Browse the repository at this point in the history
  • Loading branch information
intorr committed Feb 10, 2018
1 parent 2faae09 commit 76ff57a
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions src/Layers/xrRender/r__dsgraph_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,37 +373,6 @@ void D3DXRenderBase::r_dsgraph_render_hud()
if (g_hud && g_hud->RenderActiveItemUIQuery())
r_dsgraph_render_hud_ui(); // hud ui
#endif
/*
if(g_hud && g_hud->RenderActiveItemUIQuery())
{
#if RENDER!=R_R1
// Targets, use accumulator for temporary storage
const ref_rt rt_null;
// Reset all rt.
//RCache.set_RT(0, 0);
RCache.set_RT(0, 1);
RCache.set_RT(0, 2);
//if (RImplementation.o.albedo_wo) RCache.set_RT(RImplementation.Target->rt_Accumulator->pRT, 0);
//else RCache.set_RT(RImplementation.Target->rt_Color->pRT, 0);
if (RImplementation.o.albedo_wo) RImplementation.Target->u_setrt
(RImplementation.Target->rt_Accumulator, rt_null, rt_null, HW.pBaseZB);
else RImplementation.Target->u_setrt (RImplementation.Target->rt_Color,
rt_null, rt_null, HW.pBaseZB);
// View port is reset in DX9 when you change rt
rmNear ();
#endif
g_hud->RenderActiveItemUI ();
#if RENDER!=R_R1
//RCache.set_RT(0, 0);
// Targets, use accumulator for temporary storage
if (RImplementation.o.albedo_wo) RImplementation.Target->u_setrt (RImplementation.Target->rt_Position,
RImplementation.Target->rt_Normal, RImplementation.Target->rt_Accumulator, HW.pBaseZB);
else RImplementation.Target->u_setrt (RImplementation.Target->rt_Position,
RImplementation.Target->rt_Normal, RImplementation.Target->rt_Color, HW.pBaseZB);
#endif
}
*/

rmNormal();

Expand Down

0 comments on commit 76ff57a

Please sign in to comment.