[gtk/wip/matthiasc/vao-in-place: 1/3] gl: fix linear gradients



commit f6a36fe834233d3c6afc2b6eb582f70df6d3ce8b
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 11 14:44:27 2019 -0400

    gl: fix linear gradients
    
    The opbuffer conversion introduced this bug.

 gsk/gl/gskglrenderer.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index fe2a6b9271..c14e05c01c 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1087,10 +1087,10 @@ render_linear_gradient_node (GskGLRenderer       *self,
     }
 
   op->n_color_stops = n_color_stops;
-  op->start_point.x += start->x + builder->dx;
-  op->start_point.y += start->y + builder->dy;
-  op->end_point.x += end->x + builder->dx;
-  op->end_point.y += end->y + builder->dy;
+  op->start_point.x = start->x + builder->dx;
+  op->start_point.y = start->y + builder->dy;
+  op->end_point.x = end->x + builder->dx;
+  op->end_point.y = end->y + builder->dy;
 
   ops_draw (builder, vertex_data);
 }


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