Reassert the add equation in UIContext.

Otherwise it might use subtract or some other equation.

Fixes another case of hrydgard/ppsspp#6678.
This commit is contained in:
Unknown W. Brackets committed 2014-08-03 21:38:29 -07:00
1 parent 130865577d
commit deed84f997
1 file changed
+2
+2
View File
@@ -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();