[gtk/wip/chergert/glproto: 568/920] give more information about uniform failure




commit 5c62f2397d1b12f3fd4a01318a54b181f76c4502
Author: Christian Hergert <chergert redhat com>
Date:   Sat Dec 26 11:17:31 2020 -0800

    give more information about uniform failure

 gsk/next/gskgluniformstate.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gsk/next/gskgluniformstate.c b/gsk/next/gskgluniformstate.c
index 66abe53c92..0176df3a52 100644
--- a/gsk/next/gskgluniformstate.c
+++ b/gsk/next/gskgluniformstate.c
@@ -187,8 +187,9 @@ get_uniform (GskGLUniformState  *state,
         {
           g_critical ("Attempt to access uniform with different type of value "
                       "than it was initialized with. Program %u Location %u. "
-                      "Was %d now %d.",
-                      program, location, info->format, format);
+                      "Was %d now %d (array length %d now %d).",
+                      program, location, info->format, format,
+                      info->array_count, array_count);
           *infoptr = NULL;
           return NULL;
         }
@@ -219,7 +220,7 @@ setup_info:
   info->changed = TRUE;
   info->format = format;
   info->offset = offset;
-  info->array_count = 0;
+  info->array_count = array_count;
 
   *infoptr = info;
 


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