[gtk/wip/chergert/glproto: 672/920] use rounded rect




commit 8ba6ddf9c5ddc849b8f5aab40d4e5cf4f9949ca8
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jan 10 22:48:38 2021 -0800

    use rounded rect

 gsk/next/gskglrenderjob.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 5c0fc3c2d4..10ad22d074 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1268,10 +1268,9 @@ gsk_gl_render_job_visit_border_node (GskGLRenderJob *job,
                                    UNIFORM_BORDER_WIDTHS,
                                    1,
                                    widths);
-    gsk_gl_program_set_uniform4fv (job->driver->border,
-                                   UNIFORM_BORDER_OUTLINE_RECT,
-                                   3,
-                                   (const float *)&outline.bounds);
+    gsk_gl_program_set_uniform_rounded_rect (job->driver->border,
+                                             UNIFORM_BORDER_OUTLINE_RECT,
+                                             &outline);
 
     for (guint i = 0; i < 4; i++)
       {


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