[gtk/wip/chergert/glproto: 896/920] use memcmp
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 896/920] use memcmp
- Date: Mon, 8 Feb 2021 19:15:48 +0000 (UTC)
commit a0919499dfc831cb707d58faaff042c46a06c400
Author: Christian Hergert <chergert redhat com>
Date: Wed Feb 3 21:38:32 2021 -0800
use memcmp
no need to call graphene across library boundary, just inline the compare
gsk/next/gskgluniformstate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/next/gskgluniformstate.c b/gsk/next/gskgluniformstate.c
index 6a5951cc88..8d2a1a28d6 100644
--- a/gsk/next/gskgluniformstate.c
+++ b/gsk/next/gskgluniformstate.c
@@ -607,7 +607,7 @@ gsk_gl_uniform_state_set_matrix (GskGLUniformState *state,
if ((u = get_uniform (state, program, GSK_GL_UNIFORM_FORMAT_MATRIX, 1, location, &info)))
{
- if (!info->initial && graphene_matrix_equal_fast (u, matrix))
+ if (!info->initial && memcmp (u, matrix, sizeof *u) == 0)
return;
REPLACE_UNIFORM (info, u, GSK_GL_UNIFORM_FORMAT_MATRIX, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]