[gtk/wip/chergert/glproto: 407/493] fix state checks
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 407/493] fix state checks
- Date: Fri, 19 Feb 2021 02:25:19 +0000 (UTC)
commit d46bba5ad8808581d6f3cb2d3f4c6f37637a9c79
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]