[gtk/wip/chergert/glproto: 765/920] more assertions




commit 9f74df3df93ba7b0e3c305a2ea06ada7846f5e2e
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 26 17:44:23 2021 -0800

    more assertions

 gsk/next/gskgluniformstate.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gsk/next/gskgluniformstate.c b/gsk/next/gskgluniformstate.c
index ed9ee79d12..38f75cb296 100644
--- a/gsk/next/gskgluniformstate.c
+++ b/gsk/next/gskgluniformstate.c
@@ -763,10 +763,11 @@ gsk_gl_uniform_state_snapshot (GskGLUniformState         *state,
     {
       GskGLUniformInfo *info = &g_array_index (program_info->uniform_info, GskGLUniformInfo, i);
 
-#if G_ENABLE_DEBUG
+#ifdef G_ENABLE_DEBUG
       {
         guint size = uniform_sizes[info->format] * MAX (1, info->array_count);
         g_assert (info->format == 0 || info->offset + size <= state->uniform_data->len);
+        g_assert (!info->send_corners || info->changed);
       }
 #endif
 


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