[gtk/wip/chergert/glproto] fix early return for rounded clip node



commit ee17c4b9bb0960b1a570c032b36db24439f4ee6a
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 20 23:22:32 2021 -0800

    fix early return for rounded clip node

 gsk/next/gskglrenderjob.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index bcd017f1bb..313d8eb756 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1379,14 +1379,13 @@ gsk_gl_render_job_visit_rounded_clip_node (GskGLRenderJob *job,
       if (rounded_inner_rect_contains_rect (&transformed_clip, &current_clip.bounds))
         {
           gsk_gl_render_job_visit_node (job, child);
+          return;
         }
-      else
-        {
-          /* TODO: Intersect current and new clip */
-          gsk_gl_render_job_push_clip (job, &transformed_clip);
-          gsk_gl_render_job_visit_node (job, child);
-          gsk_gl_render_job_pop_clip (job);
-        }
+
+      /* TODO: Intersect current and new clip */
+      gsk_gl_render_job_push_clip (job, &transformed_clip);
+      gsk_gl_render_job_visit_node (job, child);
+      gsk_gl_render_job_pop_clip (job);
     }
   else
     {


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