UE4 - Static analysis fix

#rb none
[FYI] Guillaume.Abadie
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: jason.bestimt
#ROBOMERGE-AUTHOR: rolando.caloca
#ROBOMERGE-SOURCE: CL 4627332 in //UE4/Main/...
#ROBOMERGE-BOT: DEVVR (Main -> Dev-VR)

[CL 4627443 by rolando caloca in Dev-VR branch]
This commit is contained in:
rolando caloca
2018-12-04 10:02:35 -05:00
parent 664fc24f73
commit 0f0f5b55b1
3 changed files with 13 additions and 6 deletions
@@ -624,9 +624,12 @@ void FRDGBuilder::ExecutePass( const FRenderGraphPass* Pass )
AllocateAndTransitionPassResources(Pass, &RPInfo, &bHasRenderTargets);
if (RENDER_GRAPH_DRAW_EVENTS && GetEmitDrawEvents())
if (RENDER_GRAPH_DRAW_EVENTS)
{
PushDrawEventStack(Pass);
if (GetEmitDrawEvents())
{
PushDrawEventStack(Pass);
}
}
if( !Pass->IsCompute())
@@ -649,9 +652,12 @@ void FRDGBuilder::ExecutePass( const FRenderGraphPass* Pass )
RHICmdList.EndRenderPass();
}
if (RENDER_GRAPH_DRAW_EVENTS && GetEmitDrawEvents())
if (RENDER_GRAPH_DRAW_EVENTS)
{
RHICmdList.PopEvent();
if (GetEmitDrawEvents())
{
RHICmdList.PopEvent();
}
}
if (RENDER_GRAPH_DEBUGGING)