diff --git a/include/Nazara/Core/DynLib.hpp b/include/Nazara/Core/DynLib.hpp index 967c060e9..8006a7140 100644 --- a/include/Nazara/Core/DynLib.hpp +++ b/include/Nazara/Core/DynLib.hpp @@ -23,7 +23,7 @@ namespace Nz { - using DynLibFunc = int (*)(); // "Generic" type of pointer to function + using DynLibFunc = void (*)(void); // "Generic" type of pointer to function class DynLibImpl; diff --git a/src/Nazara/OpenGLRenderer/OpenGLDevice.cpp b/src/Nazara/OpenGLRenderer/OpenGLDevice.cpp index a1c8e2b0d..0d9420ef3 100644 --- a/src/Nazara/OpenGLRenderer/OpenGLDevice.cpp +++ b/src/Nazara/OpenGLRenderer/OpenGLDevice.cpp @@ -55,7 +55,7 @@ namespace Nz std::unique_ptr OpenGLDevice::InstantiateCommandPool(QueueType /*queueType*/) { - return std::make_unique(*this); + return std::make_unique(); } std::unique_ptr OpenGLDevice::InstantiateRenderPipeline(RenderPipelineInfo pipelineInfo) diff --git a/src/Nazara/Shader/SpirvConstantCache.cpp b/src/Nazara/Shader/SpirvConstantCache.cpp index 256cc73b7..74dd25ff2 100644 --- a/src/Nazara/Shader/SpirvConstantCache.cpp +++ b/src/Nazara/Shader/SpirvConstantCache.cpp @@ -677,20 +677,20 @@ namespace Nz void SpirvConstantCache::Write(const AnyConstant& constant, UInt32 resultId, SpirvSection& constants) { - std::visit([&](auto&& constant) + std::visit([&](auto&& arg) { - using ConstantType = std::decay_t; + using ConstantType = std::decay_t; if constexpr (std::is_same_v) - constants.Append((constant.value) ? SpirvOp::OpConstantTrue : SpirvOp::OpConstantFalse, resultId); + constants.Append((arg.value) ? SpirvOp::OpConstantTrue : SpirvOp::OpConstantFalse, resultId); else if constexpr (std::is_same_v) { constants.AppendVariadic(SpirvOp::OpConstantComposite, [&](const auto& appender) { - appender(GetId(constant.type->type)); + appender(GetId(arg.type->type)); appender(resultId); - for (const auto& value : constant.values) + for (const auto& value : arg.values) appender(GetId(value->constant)); }); } @@ -718,7 +718,7 @@ namespace Nz constants.Append(SpirvOp::OpConstant, typeId, resultId, SpirvSection::Raw{ &value, sizeof(value) }); - }, constant.value); + }, arg.value); } else static_assert(AlwaysFalse::value, "non-exhaustive visitor"); diff --git a/src/Nazara/Utility/RichTextDrawer.cpp b/src/Nazara/Utility/RichTextDrawer.cpp index 7f42ff235..befd58661 100644 --- a/src/Nazara/Utility/RichTextDrawer.cpp +++ b/src/Nazara/Utility/RichTextDrawer.cpp @@ -25,15 +25,15 @@ namespace Nz RichTextDrawer::RichTextDrawer(const RichTextDrawer& drawer) : m_defaultColor(drawer.m_defaultColor), + m_defaultOutlineColor(drawer.m_defaultOutlineColor), m_defaultStyle(drawer.m_defaultStyle), m_fontIndexes(drawer.m_fontIndexes), m_blocks(drawer.m_blocks), m_glyphUpdated(false), - m_defaultOutlineColor(drawer.m_defaultOutlineColor), - m_maxLineWidth(drawer.m_maxLineWidth), m_defaultCharacterSpacingOffset(drawer.m_defaultCharacterSpacingOffset), m_defaultLineSpacingOffset(drawer.m_defaultLineSpacingOffset), m_defaultOutlineThickness(drawer.m_defaultOutlineThickness), + m_maxLineWidth(drawer.m_maxLineWidth), m_defaultCharacterSize(drawer.m_defaultCharacterSize) { m_fonts.resize(drawer.m_fonts.size()); diff --git a/src/Nazara/VulkanRenderer/VulkanRenderPipeline.cpp b/src/Nazara/VulkanRenderer/VulkanRenderPipeline.cpp index 2cf731023..72430f5b5 100644 --- a/src/Nazara/VulkanRenderer/VulkanRenderPipeline.cpp +++ b/src/Nazara/VulkanRenderer/VulkanRenderPipeline.cpp @@ -188,7 +188,7 @@ namespace Nz { std::uint32_t binding = std::uint32_t(bufferData.binding); - for (const auto& componentInfo : *bufferData.declaration) + for (const auto& componentInfo : bufferData.declaration->GetComponents()) { auto& bufferAttribute = vertexAttributes.emplace_back(); bufferAttribute.binding = binding;