Fix compilation
This commit is contained in:
committed by
Jérôme Leclercq
parent
aaf3d97954
commit
f6c417ba8f
@@ -101,7 +101,10 @@ namespace Nz
|
|||||||
// Add depth-stencil clear values
|
// Add depth-stencil clear values
|
||||||
if (const auto& depthStencilClear = framePass.GetDepthStencilClear())
|
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.depth = depthStencilClear->depth;
|
||||||
dsClearValues.stencil = depthStencilClear->stencil;
|
dsClearValues.stencil = depthStencilClear->stencil;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user