[gtk/wip/chergert/glproto: 152/493] fix viewport size changes




commit b0bb2dae18d2c5516d2c788d870286f7d25cd7dd
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]