diff --git a/src/Nazara/Graphics/FrameGraph.cpp b/src/Nazara/Graphics/FrameGraph.cpp index eaf564c29..a21dbedaa 100644 --- a/src/Nazara/Graphics/FrameGraph.cpp +++ b/src/Nazara/Graphics/FrameGraph.cpp @@ -829,7 +829,11 @@ namespace Nz { for (std::size_t passIndex : readIt->second) { - std::size_t readPhysicalPassIndex = Retrieve(m_pending.passIdToPhysicalPassIndex, passIndex); + auto it = m_pending.passIdToPhysicalPassIndex.find(passIndex); + if (it == m_pending.passIdToPhysicalPassIndex.end()) + continue; //< pass may have been discarded + + std::size_t readPhysicalPassIndex = it->second; if (readPhysicalPassIndex > physicalPassIndex) //< Read in a future pass? { // Yes, store it diff --git a/src/Nazara/OpenGLRenderer/OpenGLCommandBufferBuilder.cpp b/src/Nazara/OpenGLRenderer/OpenGLCommandBufferBuilder.cpp index a43127e82..e8a1e2c1c 100644 --- a/src/Nazara/OpenGLRenderer/OpenGLCommandBufferBuilder.cpp +++ b/src/Nazara/OpenGLRenderer/OpenGLCommandBufferBuilder.cpp @@ -84,7 +84,7 @@ namespace Nz m_commandBuffer.CopyBuffer(allocation, targetBuffer.GetBuffer().GetObjectId(), size, sourceOffset, target.GetOffset() + targetOffset); } - void OpenGLCommandBufferBuilder::CopyTexture(const Texture& fromTexture, const Boxui& fromBox, TextureLayout fromLayout, const Texture& toTexture, const Vector3ui& toPos, TextureLayout toLayout) + void OpenGLCommandBufferBuilder::CopyTexture(const Texture& fromTexture, const Boxui& fromBox, TextureLayout /*fromLayout*/, const Texture& toTexture, const Vector3ui& toPos, TextureLayout /*toLayout*/) { const OpenGLTexture& sourceTexture = static_cast(fromTexture); const OpenGLTexture& targetTexture = static_cast(toTexture); diff --git a/src/Nazara/Shader/SpirvAstVisitor.cpp b/src/Nazara/Shader/SpirvAstVisitor.cpp index 5cd21f9db..56583ab15 100644 --- a/src/Nazara/Shader/SpirvAstVisitor.cpp +++ b/src/Nazara/Shader/SpirvAstVisitor.cpp @@ -562,7 +562,7 @@ namespace Nz UInt32 resultId = m_writer.AllocateResultId(); m_currentBlock->Append(*castOp, m_writer.GetTypeId(targetType), resultId, fromId); - throw std::runtime_error("toudou"); + PushResultId(resultId); } else { diff --git a/src/Nazara/Shader/SpirvWriter.cpp b/src/Nazara/Shader/SpirvWriter.cpp index a26a71843..dc548e592 100644 --- a/src/Nazara/Shader/SpirvWriter.cpp +++ b/src/Nazara/Shader/SpirvWriter.cpp @@ -115,12 +115,12 @@ namespace Nz } } - void Visit(ShaderAst::ConditionalExpression& node) override + void Visit(ShaderAst::ConditionalExpression& /*node*/) override { throw std::runtime_error("unexpected conditional expression, did you forget to sanitize the shader?"); } - void Visit(ShaderAst::ConditionalStatement& node) override + void Visit(ShaderAst::ConditionalStatement& /*node*/) override { throw std::runtime_error("unexpected conditional expression, did you forget to sanitize the shader?"); }