[gtk/wip/chergert/glproto] always set initial bit



commit 701a37b194e5220b7c2909ae45d3e46668170a1d
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 29 12:57:38 2021 -0800

    always set initial bit
    
    We need to mark this as initial now because we can get here when the
    size of the array changes, therefore the previous invariant no longer
    holds true.

 gsk/next/gskgluniformstate.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gsk/next/gskgluniformstate.c b/gsk/next/gskgluniformstate.c
index 6fb070b6e0..5bf13dbbba 100644
--- a/gsk/next/gskgluniformstate.c
+++ b/gsk/next/gskgluniformstate.c
@@ -298,8 +298,7 @@ setup_info:
   info->format = format;
   info->offset = offset;
   info->array_count = array_count;
-
-  g_assert (info->initial == TRUE);
+  info->initial = TRUE;
 
   *infoptr = info;
 


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