[gtk/wip/chergert/glproto: 469/526] fix state checks




commit 7562e3e587e3b81ea36044d5086d6d71c40a8da2
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]