[gtk+] gsk: Fix the blend mode
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gsk: Fix the blend mode
- Date: Tue, 18 Oct 2016 11:00:04 +0000 (UTC)
commit 955d9a8463650f682e86815cf3900836134361a0
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]