[gtk/wip/chergert/glproto] cleanup style, more asserts
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] cleanup style, more asserts
- Date: Mon, 28 Dec 2020 18:11:00 +0000 (UTC)
commit 27f7227b461a94f37c3d65fc0d821819fee53500
Author: Christian Hergert <chergert redhat com>
Date: Mon Dec 28 10:10:25 2020 -0800
cleanup style, more asserts
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 ad980b517e..b57880f9d1 100644
--- a/gsk/next/gskgluniformstate.c
+++ b/gsk/next/gskgluniformstate.c
@@ -99,11 +99,12 @@ program_changed (GskGLUniformState *state,
GskGLUniformInfo *info,
guint program)
{
- if (!info->changed)
+ if (info->changed == FALSE)
{
info->changed = TRUE;
if (info->format == GSK_GL_UNIFORM_FORMAT_MATRIX)
info->flags |= GSK_GL_UNIFORM_FLAGS_MATRIX_SET;
+ g_assert (program < state->program_info->len);
g_array_index (state->program_info, ProgramInfo, program).n_changed++;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]