[gtk/wip/chergert/glproto: 56/493] give more information about uniform failure
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 56/493] give more information about uniform failure
- Date: Fri, 19 Feb 2021 02:25:03 +0000 (UTC)
commit 44a4f20126fe2bf730c74af97b47ba9773382951
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]