[gtk/wip/chergert/glproto: 495/526] copy proposed fix for GL




commit 26bd9471c8af399d31f6d51b71d253299b913603
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 9 20:54:57 2021 -0800

    copy proposed fix for GL

 gsk/next/gskglrenderjob.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index dfa8c181de..e05758d0e3 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1447,7 +1447,6 @@ gsk_gl_render_job_visit_rounded_clip_node (GskGLRenderJob      *job,
           return;
         }
 
-      /* 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);
@@ -1458,13 +1457,8 @@ gsk_gl_render_job_visit_rounded_clip_node (GskGLRenderJob      *job,
       GskRoundedRect scaled_clip;
 
       offscreen.bounds = &node->bounds;
+      offscreen.force_offscreen = TRUE;
 
-      /* NOTE: We are *not* transforming the clip by the current modelview here.
-       *       We instead draw the untransformed clip to a texture and then transform
-       *       that texture.
-       *
-       *       We do, however, apply the scale factor to the child clip of course.
-       */
       scaled_clip.bounds.origin.x = clip->bounds.origin.x * scale_x;
       scaled_clip.bounds.origin.y = clip->bounds.origin.y * scale_y;
       scaled_clip.bounds.size.width = clip->bounds.size.width * scale_x;


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