Minor stuff (mostly to shut up static analysis)

This commit is contained in:
Jérôme Leclercq
2022-02-23 13:20:06 +01:00
parent 1e9e05adfa
commit f38d2747b8
3 changed files with 4 additions and 8 deletions

View File

@@ -134,10 +134,7 @@ namespace Nz
depthPrepass.SetExecutionCallback([&]()
{
if (m_rebuildCommandBuffer)
return FramePassExecution::UpdateAndExecute;
else
return FramePassExecution::Execute;
return (m_rebuildCommandBuffer) ? FramePassExecution::UpdateAndExecute : FramePassExecution::Execute;
});
depthPrepass.SetCommandCallback([this](CommandBufferBuilder& builder, const Recti& /*renderRect*/)