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




commit 2104d7bfbe64007570e61b56031eaa9e9e092841
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]