mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-03 19:21:13 +00:00
Ignore the funcs for min/max/absdiff.
Seems from reports that they are indeed ignored, just wanted to verify.
This commit is contained in:
parent
8f9a2b9882
commit
fce7d8c697
@ -742,21 +742,12 @@ void GenerateFragmentShader(char *buffer) {
|
||||
WRITE(p, " v.rgb = destColor.rgb * %s - v.rgb * %s;\n", srcFactor, dstFactor);
|
||||
break;
|
||||
case GE_BLENDMODE_MIN:
|
||||
if (funcA != GE_SRCBLEND_DSTCOLOR || funcB != GE_DSTBLEND_SRCCOLOR) {
|
||||
WARN_LOG_REPORT(G3D, "Using MIN blend equation with odd factors: %d, %d", funcA, funcB);
|
||||
}
|
||||
WRITE(p, " v.rgb = min(v.rgb, destColor.rgb);\n");
|
||||
break;
|
||||
case GE_BLENDMODE_MAX:
|
||||
if (funcA != GE_SRCBLEND_DSTCOLOR || funcB != GE_DSTBLEND_SRCCOLOR) {
|
||||
WARN_LOG_REPORT(G3D, "Using MAX blend equation with odd factors: %d, %d", funcA, funcB);
|
||||
}
|
||||
WRITE(p, " v.rgb = max(v.rgb, destColor.rgb);\n");
|
||||
break;
|
||||
case GE_BLENDMODE_ABSDIFF:
|
||||
if (funcA != GE_SRCBLEND_DSTCOLOR || funcB != GE_DSTBLEND_SRCCOLOR) {
|
||||
WARN_LOG_REPORT(G3D, "Using ABSDIFF blend equation with odd factors: %d, %d", funcA, funcB);
|
||||
}
|
||||
WRITE(p, " v.rgb = abs(v.rgb - destColor.rgb);\n");
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user