fix framebuffer drawing on ios

This commit is contained in:
Konstantin Käfer
2014-05-22 14:15:51 +02:00
parent d1df97d46b
commit 6ae0b71bbb
6 changed files with 31 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ void Painter::drawComposite(GLuint texture, const CompositeProperties &propertie
// Normally, we're using premultiplied alpha, but the resulting image we've
// just drawn is non-premultiplied. That means when blending, we have to make
// sure that we account for that.
glBlendFunc(GL_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
useProgram(compositeShader->program);
compositeShader->setMatrix(nativeMatrix);