[gtk/wip/chergert/glproto: 426/526] dont memset batch on resize




commit 5d2ace0f3dc8133485a84367c298757776fdcab9
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 2 23:19:23 2021 -0800

    dont memset batch on resize
    
    we dont need to since we set all fields anyway

 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 3ba893a2d2..2e06451c51 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -286,7 +286,7 @@ gsk_gl_command_queue_init (GskGLCommandQueue *self)
 {
   self->max_texture_size = -1;
 
-  self->batches = g_array_new (FALSE, TRUE, sizeof (GskGLCommandBatch));
+  self->batches = g_array_new (FALSE, FALSE, sizeof (GskGLCommandBatch));
   self->batch_draws = g_array_new (FALSE, FALSE, sizeof (GskGLCommandDraw));
   self->batch_binds = g_array_new (FALSE, FALSE, sizeof (GskGLCommandBind));
   self->batch_uniforms = g_array_new (FALSE, FALSE, sizeof (GskGLCommandUniform));


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