[gtk/wip/chergert/glproto: 866/920] drop memcpy for old value
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 866/920] drop memcpy for old value
- Date: Mon, 8 Feb 2021 19:15:46 +0000 (UTC)
commit 6bdb3eddf41f0eac21b9b24531eae50aaf465404
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]