[gtk/wip/chergert/glproto] 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] always do inital set of texture slot
- Date: Thu, 21 Jan 2021 05:44:46 +0000 (UTC)
commit 6c25f2bb9944d3de227a4ed7d0e321d48df57b38
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]