Use GL_ONE for the source in glBendFunc instead of pre-unmultiplying.
Eventually we need to allow both pre-multiplied alpha and not, but for now default to premultiplied.
diff --git a/egl-compositor.c b/egl-compositor.c
index 049af98..4129e99 100644
--- a/egl-compositor.c
+++ b/egl-compositor.c
@@ -68,7 +68,9 @@
glBindTexture(GL_TEXTURE_2D, sd->texture);
glEnable(GL_TEXTURE_2D);
glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+ /* Assume pre-multiplied alpha for now, this probably
+ * needs to be a wayland visual type of thing. */
+ glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);