summaryrefslogtreecommitdiff
path: root/gsk
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-06-21 07:45:50 +0200
committerTimm Bäder <mail@baedert.org>2020-06-27 10:51:06 +0200
commit21f914815526bebab7d71bb72f2484995d80ecb7 (patch)
treea683622beb9d87300f931c7d18b19c38eef2a092 /gsk
parentd4f0593b375707d88f6e024b55d58b78993505b8 (diff)
downloadgtk+-21f914815526bebab7d71bb72f2484995d80ecb7.tar.gz
gl renderer: Fix cross-fade nodes with invisible end child
Only loading the vertex data doesn't draw anything.
Diffstat (limited to 'gsk')
-rw-r--r--gsk/gl/gskglrenderer.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index b626c9e7ce..130971e7b9 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -2277,11 +2277,10 @@ render_cross_fade_node (GskGLRenderer *self,
&end_region, &is_offscreen2,
FORCE_OFFSCREEN | RESET_CLIP | RESET_OPACITY))
{
- load_vertex_data_with_region (ops_draw (builder, NULL),
- node,
- builder,
- &start_region,
- TRUE);
+ const float prev_opacity = ops_set_opacity (builder, builder->current_opacity * progress);
+ gsk_gl_renderer_add_render_ops (self, start_node, builder);
+ ops_set_opacity (builder, prev_opacity);
+
return;
}