summaryrefslogtreecommitdiff
path: root/gsk/gskglrenderer.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-12-13 05:49:57 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-20 18:01:10 +0100
commit07d39299ead9d936c05242d2aab664b7112c3070 (patch)
tree34e395706c1ebc2c9cb665e99d9a86b4d8f58097 /gsk/gskglrenderer.c
parent671d43b873770eb70f98050ab2a918a704199063 (diff)
downloadgtk+-07d39299ead9d936c05242d2aab664b7112c3070.tar.gz
gsk: Replace gsk_render_node_set_opacity()
... with gsk_opacity_node_new(). Also implement support for opacity in gtk_widget_snapshot() using this new node.
Diffstat (limited to 'gsk/gskglrenderer.c')
-rw-r--r--gsk/gskglrenderer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gsk/gskglrenderer.c b/gsk/gskglrenderer.c
index bb98e2ff42..7812121131 100644
--- a/gsk/gskglrenderer.c
+++ b/gsk/gskglrenderer.c
@@ -592,11 +592,6 @@ project_item (const graphene_matrix_t *projection,
static gboolean
render_node_needs_render_target (GskRenderNode *node)
{
- double opacity = gsk_render_node_get_opacity (node);
-
- if (opacity < 1.0)
- return TRUE;
-
return FALSE;
}
@@ -647,7 +642,7 @@ gsk_gl_renderer_add_render_item (GskGLRenderer *self,
graphene_matrix_multiply (modelview, &self->mvp, &item.mvp);
item.z = project_item (projection, modelview);
- item.opacity = gsk_render_node_get_opacity (node);
+ item.opacity = 1.0;
item.blend_mode = gsk_render_node_get_blend_mode (node);