From ff19627251d914f61ac6c44ca502b9be11f68630 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 30 Mar 2018 21:34:04 +0200 Subject: [PATCH] - fixed legacy version of color overlay to use the correct blend settings. --- src/gl/compatibility/gl_20.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gl/compatibility/gl_20.cpp b/src/gl/compatibility/gl_20.cpp index 024f3afef..1c6a3e65c 100644 --- a/src/gl/compatibility/gl_20.cpp +++ b/src/gl/compatibility/gl_20.cpp @@ -919,7 +919,9 @@ void LegacyColorOverlay(F2DDrawer *drawer, F2DDrawer::RenderCommand & cmd) for (int i = 0; i < cmd.mIndexCount; i++) { auto &vertex = drawer->mVertices[drawer->mIndices[i + cmd.mIndexIndex]]; - glColor4ub(cmd.mColor1.r, cmd.mColor1.g, cmd.mColor1.b, cmd.mColor1.a); + glBlendFunc(GL_SRC_ALPHA, GL_ONE); + glBlendEquation(GL_FUNC_ADD); + glColor4ub(cmd.mColor1.r, cmd.mColor1.g, cmd.mColor1.b, vertex.color0.a); glTexCoord2f(vertex.u, vertex.v); glVertex3f(vertex.x, vertex.y, vertex.z); }