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




commit 86fdebb216938e2b96e001b3c76de01a0c3cdb67
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]