[gtk/wip/chergert/glproto: 383/493] use memcmp




commit 4cbaf7f2b168396a2f15a30f8cfb81003fb0a129
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]