[gtk/wip/chergert/glproto] fix viewport size changes



commit b8381deff2226d6aa330e5eb5f6a9ce0bcc15d4c
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jan 10 18:36:03 2021 -0800

    fix viewport size changes

 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 30c283811e..f0b6cc20e6 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -715,7 +715,7 @@ gsk_gl_command_queue_execute (GskGLCommandQueue *self)
           apply_viewport (&width,
                           &height,
                           batch->any.viewport.width,
-                          batch->any.viewport.width);
+                          batch->any.viewport.height);
 
           glClear (batch->clear.bits);
         break;
@@ -744,7 +744,7 @@ gsk_gl_command_queue_execute (GskGLCommandQueue *self)
           apply_viewport (&width,
                           &height,
                           batch->any.viewport.width,
-                          batch->any.viewport.width);
+                          batch->any.viewport.height);
 
           if G_UNLIKELY (batch->draw.bind_count > 0)
             {


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