[gtk/wip/chergert/glproto] delay scissor setup



commit 55a538137113ac9d7cef322cc30a6e3f9eddcdb5
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 17 17:34:39 2021 -0800

    delay scissor setup
    
    we always do this after changing FBO, so just ignore the initial one that
    has a -1 FBO anyway.

 gsk/next/gskglcommandqueue.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index b82151998b..3ec41e9bd5 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -804,6 +804,8 @@ apply_scissor (gboolean              *state,
                const graphene_rect_t *scissor,
                gboolean               has_scissor)
 {
+  g_assert (framebuffer != (guint)-1);
+
   if (framebuffer != 0 || !has_scissor)
     {
       if (*state != FALSE)
@@ -1066,8 +1068,6 @@ gsk_gl_command_queue_execute (GskGLCommandQueue    *self,
       scissor_test.size.height = r.height * scale_factor;
     }
 
-  apply_scissor (&scissor_state, framebuffer, &scissor_test, has_scissor);
-
   next_batch_index = self->head_batch_index;
 
   while (next_batch_index >= 0)


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