[gtk/wip/baedert/for-master: 96/101] gl renderer: Fix cross-fade nodes with invisible end child



commit a112b404a2e86a27f86191e5e22192b668c53e0b
Author: Timm Bäder <mail baedert org>
Date:   Sun Jun 21 07:45:50 2020 +0200

    gl renderer: Fix cross-fade nodes with invisible end child
    
    Only loading the vertex data doesn't draw anything.

 gsk/gl/gskglrenderer.c | 9 ++++-----
 1 file 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;
     }
 


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