From c352e78e11130200518d5f515680a8ad0724d5f4 Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 21 Nov 2023 07:44:44 +0100 Subject: [PATCH] Compilation fixes --- include/Nazara/Graphics/RenderTexture.hpp | 2 +- src/Nazara/OpenGLRenderer/OpenGLCommandBufferBuilder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Nazara/Graphics/RenderTexture.hpp b/include/Nazara/Graphics/RenderTexture.hpp index 3d6249c67..380cf9082 100644 --- a/include/Nazara/Graphics/RenderTexture.hpp +++ b/include/Nazara/Graphics/RenderTexture.hpp @@ -19,7 +19,7 @@ namespace Nz class NAZARA_GRAPHICS_API RenderTexture : public RenderTarget { public: - inline RenderTexture(std::shared_ptr targetTexture); + RenderTexture(std::shared_ptr targetTexture); RenderTexture(const RenderTexture&) = delete; RenderTexture(RenderTexture&&) = delete; ~RenderTexture() = default; diff --git a/src/Nazara/OpenGLRenderer/OpenGLCommandBufferBuilder.cpp b/src/Nazara/OpenGLRenderer/OpenGLCommandBufferBuilder.cpp index 252def75c..6fed91085 100644 --- a/src/Nazara/OpenGLRenderer/OpenGLCommandBufferBuilder.cpp +++ b/src/Nazara/OpenGLRenderer/OpenGLCommandBufferBuilder.cpp @@ -94,7 +94,7 @@ namespace Nz m_commandBuffer.BlitTexture(sourceTexture, fromBox, targetTexture, toBox, filter); } - void OpenGLCommandBufferBuilder::BlitTextureToSwapchain(const Texture& fromTexture, const Boxui& fromBox, TextureLayout fromLayout, const Swapchain& swapchain, std::size_t imageIndex) + void OpenGLCommandBufferBuilder::BlitTextureToSwapchain(const Texture& fromTexture, const Boxui& fromBox, TextureLayout /*fromLayout*/, const Swapchain& swapchain, std::size_t imageIndex) { const OpenGLTexture& glTexture = SafeCast(fromTexture); const OpenGLSwapchain& glSwapchain = SafeCast(swapchain);