[gtk+/wip/ebassi/gsk-renderer: 123/126] gsk: Fix the blend mode



commit ddd7d489e33a4d7ce19e866ae40492d32ff8ee57
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Aug 9 16:27:18 2016 +0100

    gsk: Fix the blend mode
    
    The default blend mode should be the equivalent of Cairo's OVER
    operator.

 gsk/gskglrenderer.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gskglrenderer.c b/gsk/gskglrenderer.c
index ddc6990..508856d 100644
--- a/gsk/gskglrenderer.c
+++ b/gsk/gskglrenderer.c
@@ -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++)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]