[gtk/wip/chergert/glproto: 354/493] drop memcpy for old value




commit 78f6cef48f0b56f388384ee989216d315c40d9f3
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 2 18:53:56 2021 -0800

    drop memcpy for old value
    
    we are going to overwrite the value on the first use of the program anyway because
    we explicitly set initial to TRUE. Therefore we can just drop this.

 gsk/next/gskgluniformstate.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/gsk/next/gskgluniformstate.c b/gsk/next/gskgluniformstate.c
index 7879753a35..2e40a79167 100644
--- a/gsk/next/gskgluniformstate.c
+++ b/gsk/next/gskgluniformstate.c
@@ -867,7 +867,6 @@ gsk_gl_uniform_state_end_frame (GskGLUniformState *state)
           g_assert (info->offset + size <= state->uniform_data->len);
 
           alloc_uniform_data (buffer, size, &offset);
-          memcpy (&buffer->data[offset], &state->uniform_data->data[info->offset], size);
 
           info->offset = offset;
           info->changed = FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]