mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 18:23:43 +01:00
Only use dual source when actually needed.
Does generate a few more shaders but hopefully isn't a problem, should get rid of most of the slowdown in most games.
This commit is contained in:
1 parent
a9a15d5196
commit
f8312716f3
1 file changed
+5
-5
@@ -128,15 +128,15 @@ ReplaceAlphaType ReplaceAlphaWithStencil() {
|
||||
return REPLACE_ALPHA_NO;
|
||||
}
|
||||
|
||||
if (gl_extensions.ARB_blend_func_extended) {
|
||||
return REPLACE_ALPHA_DUALSOURCE;
|
||||
}
|
||||
|
||||
if (gstate.isAlphaBlendEnabled()) {
|
||||
if (nonAlphaSrcFactors[gstate.getBlendFuncA()] && nonAlphaDestFactors[gstate.getBlendFuncB()]) {
|
||||
return REPLACE_ALPHA_YES;
|
||||
} else {
|
||||
return REPLACE_ALPHA_NO;
|
||||
if (gl_extensions.ARB_blend_func_extended) {
|
||||
return REPLACE_ALPHA_DUALSOURCE;
|
||||
} else {
|
||||
return REPLACE_ALPHA_NO;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user