[gtk/wip/chergert/glproto] here too
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] here too
- Date: Fri, 19 Feb 2021 04:20:23 +0000 (UTC)
commit adcd24d15d980b6cea23a3b707cb519497ebc587
Author: Christian Hergert <chergert redhat com>
Date: Thu Feb 18 20:20:18 2021 -0800
here too
gsk/next/gskgluniformstate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/next/gskgluniformstate.c b/gsk/next/gskgluniformstate.c
index 84a149a037..fae38f91bd 100644
--- a/gsk/next/gskgluniformstate.c
+++ b/gsk/next/gskgluniformstate.c
@@ -121,7 +121,7 @@ gsk_gl_uniform_state_init_value (GskGLUniformState *state,
if G_LIKELY (array_count <= info->info.array_count)
{
*infoptr = info;
- return state->values_buf + (info->info.offset*4);
+ return GSK_GL_UNIFORM_VALUE (state->values_buf, info->info.offset);
}
/* We found the uniform, but there is not enough space for the
@@ -173,7 +173,7 @@ setup_info:
*infoptr = info;
- return state->values_buf + (offset*4);
+ return GSK_GL_UNIFORM_VALUE (state->values_buf, info->info.offset);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]