mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
Avoid using fbo copies for the common 2a + 1-2a.
We won't even get it right that often since the copy doesn't deal with overlap properly.
This commit is contained in:
1 parent
5d1b1ab547
commit
0904085eb5
1 file changed
+2
-5
@@ -274,11 +274,8 @@ ReplaceBlendType ReplaceBlendWithShader() {
|
||||
case GE_DSTBLEND_DOUBLESRCALPHA:
|
||||
case GE_DSTBLEND_DOUBLEINVSRCALPHA:
|
||||
// We can't technically do this correctly (due to clamping) without reading the dst color.
|
||||
if (g_Config.bDisableSlowFramebufEffects) {
|
||||
return REPLACE_BLEND_PRE_SRC_2X_ALPHA;
|
||||
} else {
|
||||
return REPLACE_BLEND_COPY_FBO;
|
||||
}
|
||||
// Using a copy isn't accurate either, though, when there's overlap.
|
||||
return REPLACE_BLEND_PRE_SRC_2X_ALPHA;
|
||||
|
||||
default:
|
||||
// TODO: Could use vertexFullAlpha, but it's not calculated yet.
|
||||
|
||||
Reference in new issue
Block a user