Commit 4befa6b6 authored by Emmanuele Bassi's avatar Emmanuele Bassi

gsk: Fix the blend mode

The default blend mode should be the equivalent of Cairo's OVER
operator.
parent c454c1ad
......@@ -878,8 +878,7 @@ gsk_gl_renderer_render (GskRenderer *renderer,
glDepthFunc (GL_LEQUAL);
glEnable (GL_BLEND);
glBlendFuncSeparate (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE);
glBlendEquation (GL_FUNC_ADD);
glBlendFunc (GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
GSK_NOTE (OPENGL, g_print ("Rendering %u items\n", self->render_items->len));
for (i = 0; i < self->render_items->len; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment