[gtk] gl renderer: Declare color matrix child separately



commit 3569348f9c7a0cff9f63a28b6f5f952f9fb7662b
Author: Timm Bäder <mail baedert org>
Date:   Sun Mar 31 07:50:33 2019 +0200

    gl renderer: Declare color matrix child separately
    
    Otherwise I'm doing this all the time when debugging.

 gsk/gl/gskglrenderer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 3690924597..7d00ecb290 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1215,13 +1215,14 @@ render_color_matrix_node (GskGLRenderer       *self,
   const float min_y = builder->dy + node->bounds.origin.y;
   const float max_x = min_x + node->bounds.size.width;
   const float max_y = min_y + node->bounds.size.height;
+  GskRenderNode *child = gsk_color_matrix_node_get_child (node);
   int texture_id;
   gboolean is_offscreen;
 
   /* Pass min_x/max_x/min_y/max_y without builder->dx/dy! */
   add_offscreen_ops (self, builder,
                      &node->bounds,
-                     gsk_color_matrix_node_get_child (node),
+                     child,
                      &texture_id, &is_offscreen,
                      RESET_CLIP | RESET_OPACITY);
 


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