OpenGL blending - fixed SUBTRACT

O = D - (S * SA)
now matches Java2D
This commit is contained in:
Jakub Valtar
2014-11-01 18:05:41 +01:00
parent b58cf7eefb
commit 7c9484c11f
@@ -6025,7 +6025,7 @@ public class PGraphicsOpenGL extends PGraphics {
} else if (blendMode == SUBTRACT) {
if (blendEqSupported) {
pgl.blendEquation(PGL.FUNC_REVERSE_SUBTRACT);
pgl.blendFunc(PGL.ONE, PGL.SRC_ALPHA);
pgl.blendFunc(PGL.SRC_ALPHA, PGL.ONE);
} else {
PGraphics.showWarning(BLEND_DRIVER_ERROR, "SUBTRACT");
}