diff --git a/include/Nazara/OpenGLRenderer/Wrapper/Context.hpp b/include/Nazara/OpenGLRenderer/Wrapper/Context.hpp index 928a20b90..a592275ab 100644 --- a/include/Nazara/OpenGLRenderer/Wrapper/Context.hpp +++ b/include/Nazara/OpenGLRenderer/Wrapper/Context.hpp @@ -116,7 +116,7 @@ namespace Nz::GL virtual ~Context(); void BindBuffer(BufferTarget target, GLuint buffer, bool force = false) const; - GLenum BindFramebuffer(GLuint fbo) const; + [[nodiscard]] GLenum BindFramebuffer(GLuint fbo) const; void BindFramebuffer(FramebufferTarget target, GLuint fbo) const; void BindProgram(GLuint program) const; void BindSampler(UInt32 textureUnit, GLuint sampler) const; diff --git a/src/Nazara/Graphics/Graphics.cpp b/src/Nazara/Graphics/Graphics.cpp index cebfd7b99..a5415ef20 100644 --- a/src/Nazara/Graphics/Graphics.cpp +++ b/src/Nazara/Graphics/Graphics.cpp @@ -238,8 +238,8 @@ namespace Nz void Graphics::RegisterMaterialPasses() { - m_materialPassRegistry.RegisterPass("DepthPass"); m_materialPassRegistry.RegisterPass("ForwardPass"); + m_materialPassRegistry.RegisterPass("DepthPass"); } void Graphics::SelectDepthStencilFormats() diff --git a/src/Nazara/Widgets/Widgets.cpp b/src/Nazara/Widgets/Widgets.cpp index a30672c43..7fa90a7ba 100644 --- a/src/Nazara/Widgets/Widgets.cpp +++ b/src/Nazara/Widgets/Widgets.cpp @@ -38,7 +38,7 @@ namespace Nz m_transparentMaterialPass->EnableDepthWrite(false); m_transparentMaterialPass->EnableBlending(true); m_transparentMaterialPass->SetBlendEquation(BlendEquation::Add, BlendEquation::Add); - m_transparentMaterialPass->SetBlendFunc(BlendFunc::SrcAlpha, BlendFunc::InvSrcAlpha, BlendFunc::One, BlendFunc::Zero); + m_transparentMaterialPass->SetBlendFunc(BlendFunc::SrcAlpha, BlendFunc::InvSrcAlpha, BlendFunc::One, BlendFunc::One); m_transparentMaterial = std::make_shared(); m_transparentMaterial->AddPass("ForwardPass", m_transparentMaterialPass);