[gtk/wip/chergert/glyphy: 1/7] gsk/gl: check for format as well




commit 1481733037722ac2c681d502d145b0336361844b
Author: Christian Hergert <chergert redhat com>
Date:   Mon Mar 14 16:22:52 2022 -0700

    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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]