mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Turn off regular alpha blending
This commit is contained in:
parent
e358a6dcbe
commit
f1254c79ed
1 changed files with 6 additions and 1 deletions
|
@ -325,7 +325,12 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (((blendFuncEq >= GE_BLENDMODE_MIN) && gl_extensions.EXT_blend_minmax) || gl_extensions.GLES3) {
|
if (((blendFuncEq >= GE_BLENDMODE_MIN) && gl_extensions.EXT_blend_minmax) || gl_extensions.GLES3) {
|
||||||
glstate.blendEquation.set(eqLookup[blendFuncEq]);
|
if (blendFuncEq == GE_BLENDMODE_ABSDIFF && gl_extensions.EXT_shader_framebuffer_fetch) {
|
||||||
|
// Handle GE_BLENDMODE_ABSDIFF in fragment shader and turn off regular alpha blending here.
|
||||||
|
glstate.blend.set(false);
|
||||||
|
} else {
|
||||||
|
glstate.blendEquation.set(eqLookup[blendFuncEq]);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
glstate.blendEquation.set(eqLookupNoMinMax[blendFuncEq]);
|
glstate.blendEquation.set(eqLookupNoMinMax[blendFuncEq]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue