[gtk/wip/chergert/glproto: 224/493] 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: 224/493] always do inital set of texture slot
- Date: Fri, 19 Feb 2021 02:25:11 +0000 (UTC)
commit aa0b6452362b2fdcf1cce46e7e4464604230235b
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]