[gtk/wip/chergert/glproto] ignore texture changes to 0



commit fcc0f0b945d51e451930a2efe7428c8b61fda107
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 20 11:50:11 2021 -0800

    ignore texture changes to 0
    
    we dont care about those in general

 gsk/next/gskglcommandqueue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 6e98e54718..4228da2398 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -407,7 +407,7 @@ gsk_gl_command_queue_end_draw (GskGLCommandQueue *self)
     {
       GskGLBindTexture *texture = &self->attachments->textures[i];
 
-      if (texture->changed)
+      if (texture->changed && texture->id > 0)
         {
           GskGLCommandBind bind;
 


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