[gtk/wip/chergert/glproto: 736/920] always do inital set of texture slot
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 736/920] always do inital set of texture slot
- Date: Mon, 8 Feb 2021 19:15:39 +0000 (UTC)
commit 9040a990010f94ed7188738be12e20529feee936
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 20 21:30:33 2021 -0800
always do inital set of texture slot
this makes things easier when comparing apitrace output, and its not
much overhead when we just do it once (even if still 0).
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 d470d53e7f..b4e41261df 100644
--- a/gsk/next/gskgluniformstate.c
+++ b/gsk/next/gskgluniformstate.c
@@ -572,7 +572,7 @@ gsk_gl_uniform_state_set_texture (GskGLUniformState *state,
if ((u = get_uniform (state, program, GSK_GL_UNIFORM_FORMAT_TEXTURE, 1, location, &info)))
{
- if (*u != texture_slot)
+ if (*u != texture_slot || info->initial)
{
REPLACE_UNIFORM (info, u, GSK_GL_UNIFORM_FORMAT_TEXTURE, 1);
*u = texture_slot;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]