You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fixed static analysis warning: Dereferencing NULL pointer 'DepthStencilRenderTarget.DepthStencilTarget'
#jira UE-73125 #ROBOMERGE-OWNER: lina.halper #ROBOMERGE-AUTHOR: dmitriy.dyomin #ROBOMERGE-SOURCE: CL 6054867 via CL 6055470 via CL 6056431 via CL 6056602 #ROBOMERGE-BOT: ANIM (Main -> Dev-Anim) [CL 6064545 by dmitriy dyomin in Dev-Anim branch]
This commit is contained in:
@@ -1002,20 +1002,20 @@ void FRHIRenderPassInfo::Validate() const
|
||||
// this check is incorrect for mobile, depth/stencil is intermediate and we don't want to store it to main memory
|
||||
//ensure(StencilStore == ERenderTargetStoreAction::EStore);
|
||||
}
|
||||
|
||||
if (SubpassHint == ESubpassHint::DepthReadSubpass)
|
||||
{
|
||||
// for depth read sub-pass
|
||||
// 1. render pass must have depth target
|
||||
// 2. depth target must support InputAttachement
|
||||
ensure((DepthStencilRenderTarget.DepthStencilTarget->GetFlags() & TexCreate_InputAttachmentRead) != 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ensure(DepthStencilRenderTarget.Action == EDepthStencilTargetActions::DontLoad_DontStore);
|
||||
ensure(DepthStencilRenderTarget.ExclusiveDepthStencil == FExclusiveDepthStencil::DepthNop_StencilNop);
|
||||
}
|
||||
|
||||
if (SubpassHint == ESubpassHint::DepthReadSubpass)
|
||||
{
|
||||
// for depth read sub-pass
|
||||
// 1. render pass must have depth target
|
||||
// 2. depth target must support InputAttachement
|
||||
ensure(DepthStencilRenderTarget.DepthStencilTarget);
|
||||
ensure((DepthStencilRenderTarget.DepthStencilTarget->GetFlags() & TexCreate_InputAttachmentRead) != 0);
|
||||
ensure(SubpassHint != ESubpassHint::DepthReadSubpass);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user