[gtk/wip/chergert/glproto: 444/493] style cleanup




commit d9e63a1a5650dee1da6c8d142f1aec13bcfd2106
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 10 14:15:49 2021 -0800

    style cleanup

 gsk/next/gskglcommandqueue.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index ba57c20c7c..0581dc182b 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -948,12 +948,9 @@ gsk_gl_command_queue_execute (GskGLCommandQueue    *self,
             {
               const GskGLCommandUniform *u = &g_array_index (self->batch_uniforms, GskGLCommandUniform, 
batch->draw.uniform_offset);
 
-              for (guint i = 0; i < batch->draw.uniform_count; i++)
-                {
-                  apply_uniform (gsk_gl_uniform_state_get_uniform_data (self->uniforms, u->info.offset),
-                                 u->info, u->location);
-                  u++;
-                }
+              for (guint i = 0; i < batch->draw.uniform_count; i++, u++)
+                apply_uniform (gsk_gl_uniform_state_get_uniform_data (self->uniforms, u->info.offset),
+                               u->info, u->location);
 
               n_uniforms += batch->draw.uniform_count;
               n_binds += batch->draw.bind_count;


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