[gtk/wip/chergert/glproto: 317/526] begin draw before changing uniforms




commit 096e6744ad32de203c76393df765fde6b3e6cf1e
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 26 17:47:16 2021 -0800

    begin draw before changing uniforms
    
    this doesn't really matter, but it keeps all the uniform stuff happening
    after the begin draw call which can be easier to debug.

 gsk/next/gskglprogram.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/next/gskglprogram.c b/gsk/next/gskglprogram.c
index ff5e434d1a..454dc643fd 100644
--- a/gsk/next/gskglprogram.c
+++ b/gsk/next/gskglprogram.c
@@ -179,6 +179,8 @@ gsk_gl_program_begin_draw (GskGLProgram            *self,
   g_assert (modelview != NULL);
   g_assert (clip != NULL);
 
+  gsk_gl_command_queue_begin_draw (self->driver->command_queue, self->id, viewport);
+
   if (self->viewport_location > -1)
     gsk_gl_command_queue_set_uniform4f (self->driver->command_queue,
                                         self->id,
@@ -222,8 +224,6 @@ gsk_gl_program_begin_draw (GskGLProgram            *self,
                                         self->id,
                                         self->alpha_location,
                                         alpha);
-
-  gsk_gl_command_queue_begin_draw (self->driver->command_queue, self->id, viewport);
 }
 
 void


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