From 57f65a937988e9437aea47972cca8b3c31f33f90 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 20 Jul 2018 19:46:53 +0200 Subject: [PATCH] - fixed: The 2D drawer did not restore the blend mode after finishing. --- src/gl/renderer/gl_renderer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gl/renderer/gl_renderer.cpp b/src/gl/renderer/gl_renderer.cpp index 13a18cce7..a2dfaebaa 100644 --- a/src/gl/renderer/gl_renderer.cpp +++ b/src/gl/renderer/gl_renderer.cpp @@ -556,6 +556,8 @@ void FGLRenderer::Draw2D(F2DDrawer *drawer) } glDisable(GL_SCISSOR_TEST); + gl_RenderState.BlendEquation(GL_FUNC_ADD); + gl_RenderState.BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); gl_RenderState.SetVertexBuffer(mVBO); gl_RenderState.EnableTexture(true); gl_RenderState.EnableBrightmap(true);