diff options
author | Timm Bäder <mail@baedert.org> | 2020-06-21 07:45:50 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-06-27 10:51:06 +0200 |
commit | 21f914815526bebab7d71bb72f2484995d80ecb7 (patch) | |
tree | a683622beb9d87300f931c7d18b19c38eef2a092 /gsk | |
parent | d4f0593b375707d88f6e024b55d58b78993505b8 (diff) | |
download | gtk+-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.c | 9 |
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; } |