From 2be34d35b4747ddf223452ae1ce94fbe9c5fc1a2 Mon Sep 17 00:00:00 2001 From: Struma Date: Thu, 30 Sep 2021 17:27:39 -0400 Subject: [PATCH] Update glstate.cpp (https://github.com/Ancurio/mkxp/commit/cf6403ae65c2df8fba8509de28e2c00aa49d98e3) --- src/display/gl/glstate.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/display/gl/glstate.cpp b/src/display/gl/glstate.cpp index 3017bec0..1f56cec2 100644 --- a/src/display/gl/glstate.cpp +++ b/src/display/gl/glstate.cpp @@ -75,9 +75,8 @@ void GLBlendMode::apply(const BlendType &value) { break; case BlendSubstraction: - // FIXME Alpha calculation is untested gl.BlendEquation(GL_FUNC_REVERSE_SUBTRACT); - gl.BlendFuncSeparate(GL_SRC_ALPHA, GL_ONE, GL_ONE, GL_ONE); + gl.BlendFuncSeparate(GL_SRC_ALPHA, GL_ONE, GL_ZERO, GL_ONE); break; } }