mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-05 18:46:18 +02:00
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:
1 parent
130865577d
commit
deed84f997
1 file changed
+2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user