From deed84f9976e9afa855f3e4d8938c02e252dca58 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 3 Aug 2014 19:50:04 -0700 Subject: [PATCH] Reassert the add equation in UIContext. Otherwise it might use subtract or some other equation. Fixes another case of hrydgard/ppsspp#6678. --- ui/ui_context.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/ui_context.cpp b/ui/ui_context.cpp index fbdaacb596..5bac398568 100644 --- a/ui/ui_context.cpp +++ b/ui/ui_context.cpp @@ -37,6 +37,7 @@ void UIContext::Init(const GLSLProgram *uishader, const GLSLProgram *uishadernot void UIContext::Begin() { glstate.blend.enable(); glstate.blendFuncSeparate.set(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glstate.blendEquationSeparate.set(GL_FUNC_ADD, GL_FUNC_ADD); glstate.cullFace.disable(); glstate.depthTest.disable(); glstate.dither.enable(); @@ -54,6 +55,7 @@ void UIContext::Begin() { void UIContext::BeginNoTex() { glstate.blend.enable(); glstate.blendFuncSeparate.set(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glstate.blendEquationSeparate.set(GL_FUNC_ADD, GL_FUNC_ADD); glstate.cullFace.disable(); glstate.depthTest.disable(); glstate.dither.enable();