[gtk/wip/chergert/glproto: 764/920] only clear corner state




commit 867c03d25c372118aee7b135350a49c506244135
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 26 17:44:14 2021 -0800

    only clear corner state
    
    we don't need to clear the intersection rect

 gsk/next/gskglrenderjob.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 24c0190d14..8c8172c502 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1304,7 +1304,7 @@ gsk_gl_render_job_visit_clipped_child (GskGLRenderJob        *job,
     {
       const GskRoundedRect *current_clip = gsk_gl_render_job_get_clip (job);
 
-      memset (&intersection, 0, sizeof intersection);
+      memset (&intersection.corner, 0, sizeof intersection.corner);
       graphene_rect_intersection (&transformed_clip,
                                   &current_clip->bounds,
                                   &intersection.bounds);


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