Merge branch 'master' of https://github.com/openfl/lime into audio

This commit is contained in:
Lars A. Doucet
2015-04-16 16:42:03 -05:00

View File

@@ -496,7 +496,12 @@ public:
glBlendEquation( GL_FUNC_REVERSE_SUBTRACT); glBlendEquation( GL_FUNC_REVERSE_SUBTRACT);
break; break;
default: default:
glBlendFunc(premAlpha ? GL_ONE : GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); if (premAlpha){
glBlendFunc(GL_ONE,GL_ONE_MINUS_SRC_ALPHA);
}
else {
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
}
glBlendEquation( GL_FUNC_ADD); glBlendEquation( GL_FUNC_ADD);
} }