summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2022-03-14 16:22:52 -0700
committerChristian Hergert <chergert@redhat.com>2022-03-18 12:33:33 -0700
commit2efc1729e20c014ebcd0184da148dbbf999731e4 (patch)
tree25fb6aec9e5ee83c9183c8b4b844db1076097837
parenta66a0dde812a4544f3ef2579a6639d699b48cf9e (diff)
downloadgtk+-2efc1729e20c014ebcd0184da148dbbf999731e4.tar.gz
gsk/gl: check for format as well
This could potentially happen if a uniform had never been set.
-rw-r--r--gsk/gl/gskglcommandqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/gl/gskglcommandqueue.c b/gsk/gl/gskglcommandqueue.c
index b7640edf87..4d7ef4b3d3 100644
--- a/gsk/gl/gskglcommandqueue.c
+++ b/gsk/gl/gskglcommandqueue.c
@@ -282,7 +282,7 @@ snapshot_uniforms (GskGLUniformState *state,
{
const GskGLUniformMapping *mapping = &program->mappings[i];
- if (!mapping->info.initial && mapping->location > -1)
+ if (!mapping->info.initial && mapping->info.format && mapping->location > -1)
{
uniform[count].location = mapping->location;
uniform[count].info = mapping->info;