[gtk/wip/chergert/glproto: 79/82] always keep a node in the all_queue




commit bce0886f2d4e02eae57ac656d6e95ac2696ea379
Author: Christian Hergert <chergert redhat com>
Date:   Sun Dec 20 19:44:38 2020 -0800

    always keep a node in the all_queue

 gsk/next/gskglcommandqueue.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 60fe94061c..1dd1dfa009 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -1086,6 +1086,11 @@ gsk_gl_command_queue_end_frame (GskGLCommandQueue *self)
   if (self->autorelease_textures->len > 0)
     glDeleteTextures (self->autorelease_textures->len,
                       (GLuint *)(gpointer)self->autorelease_textures->data);
+
+  /* Allocate first batch for next round so we never have an empty
+   * GskGLCommandQueue.all_batches array to check for elsewhere.
+   */
+  gsk_gl_command_queue_advance (self, 0);
 }
 
 void


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