[gtk/wip/chergert/glproto: 251/493] ensure our send_corner state is correct




commit ab13dc9adca277ff675211930af21abdc20bead1
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 26 16:28:23 2021 -0800

    ensure our send_corner state is correct

 gsk/next/gskgluniformstate.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gsk/next/gskgluniformstate.c b/gsk/next/gskgluniformstate.c
index 086e1bc8f5..ed9ee79d12 100644
--- a/gsk/next/gskgluniformstate.c
+++ b/gsk/next/gskgluniformstate.c
@@ -515,6 +515,8 @@ gsk_gl_uniform_state_set_rounded_rect (GskGLUniformState    *state,
         {
           REPLACE_UNIFORM (info, u, GSK_GL_UNIFORM_FORMAT_ROUNDED_RECT, 1);
 
+          g_assert (info->changed || !info->send_corners);
+
           if (!info->send_corners)
             {
               if (!graphene_size_equal (&u->corner[0], &rounded_rect->corner[0]) ||


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