[gtk/wip/chergert/glproto] more assertions
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] more assertions
- Date: Wed, 27 Jan 2021 01:49:09 +0000 (UTC)
commit f0646c3a06648e2295b7e5999bc3bcfdd5e4f6db
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]