gsk/gl: check for format as well

This could potentially happen if a uniform had never been set.
This commit is contained in:
Christian Hergert 2022-03-14 16:22:52 -07:00
parent a66a0dde81
commit 2efc1729e2

View File

@ -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;