Fix compilation

This commit is contained in:
SirLynix
2023-11-20 00:13:03 +01:00
committed by Jérôme Leclercq
parent aaf3d97954
commit f6c417ba8f

View File

@@ -101,7 +101,10 @@ namespace Nz
// Add depth-stencil clear values
if (const auto& depthStencilClear = framePass.GetDepthStencilClear())
{
auto& dsClearValues = bakedPass.outputClearDepthStencil.emplace();
std::size_t depthClearIndex = colorOutputs.size();
bakedPass.outputClearValues.resize(depthClearIndex + 1);
auto& dsClearValues = bakedPass.outputClearValues[depthClearIndex];
dsClearValues.depth = depthStencilClear->depth;
dsClearValues.stencil = depthStencilClear->stencil;
}