From 2efc1729e20c014ebcd0184da148dbbf999731e4 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Mon, 14 Mar 2022 16:22:52 -0700 Subject: [PATCH] gsk/gl: check for format as well This could potentially happen if a uniform had never been set. --- gsk/gl/gskglcommandqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2