[gtk] gl renderer: Trivial variable reordering



commit ef7276c3985970b6dad99f8283de2fe02686f8ea
Author: Timm Bäder <mail baedert org>
Date:   Fri Dec 20 12:21:26 2019 +0100

    gl renderer: Trivial variable reordering

 gsk/gl/gskglrenderer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 172e48b7b2..2e342785a1 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1106,11 +1106,11 @@ render_linear_gradient_node (GskGLRenderer   *self,
                              GskRenderNode   *node,
                              RenderOpBuilder *builder)
 {
-  OpLinearGradient *op;
-  int n_color_stops = MIN (8, gsk_linear_gradient_node_get_n_color_stops (node));
+  const int n_color_stops = MIN (8, gsk_linear_gradient_node_get_n_color_stops (node));
   const GskColorStop *stops = gsk_linear_gradient_node_peek_color_stops (node);
   const graphene_point_t *start = gsk_linear_gradient_node_peek_start (node);
   const graphene_point_t *end = gsk_linear_gradient_node_peek_end (node);
+  OpLinearGradient *op;
 
   ops_set_program (builder, &self->linear_gradient_program);
   op = ops_begin (builder, OP_CHANGE_LINEAR_GRADIENT);


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