A lot of fixes

This commit is contained in:
Jérôme Leclercq
2021-05-28 22:58:40 +02:00
parent ff505e9019
commit c2b61b6732
6 changed files with 21 additions and 11 deletions

View File

@@ -212,7 +212,7 @@ namespace Nz
{
if (auto it = m_pending.attachmentToTextures.find(depthStencilOutput); it == m_pending.attachmentToTextures.end())
m_pending.attachmentToTextures.emplace(depthStencilOutput, textureId);
else
else if (it->second != textureId)
throw std::runtime_error("depth-stencil output already assigned");
}
}