[gtk/wip/chergert/glproto: 920/920] fix state checks




commit fa0921830a43de62bb7b71248ce740d566481ffe
Author: Christian Hergert <chergert redhat com>
Date:   Mon Feb 8 11:12:42 2021 -0800

    fix state checks

 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 3cb6a56c2c..12b0972f1c 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -741,7 +741,7 @@ apply_scissor (gboolean              *state,
 {
   if (framebuffer != 0 || !has_scissor)
     {
-      if (*state == TRUE)
+      if (*state != FALSE)
         {
           glDisable (GL_SCISSOR_TEST);
           *state = FALSE;
@@ -749,7 +749,7 @@ apply_scissor (gboolean              *state,
     }
   else
     {
-      if (*state == FALSE)
+      if (*state != TRUE)
         {
           glEnable (GL_SCISSOR_TEST);
           glScissor (scissor->origin.x,


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