[gtk/glyphy2: 32/47] gsk/gl: check for format as well



commit 041c6811691727270bf99366b6995d857f666cf1
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 fa8ac1defb..cb2c839063 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]