[gtk/wip/otte/for-master: 1/2] glcontext: Reinstate missing "!"




commit aa0c22b64813a406da9854fd079579d87181a97b
Author: Benjamin Otte <otte redhat com>
Date:   Sat Oct 16 15:47:05 2021 +0200

    glcontext: Reinstate missing "!"
    
    Replacing the return_if_fail()s in commit f584d4f50025 lost the
    inversions.
    
    Fixes #4349

 gdk/gdkglcontext.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index 149e93ff14..640c8bf1fc 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -852,7 +852,7 @@ gdk_gl_context_set_debug_enabled (GdkGLContext *context,
   GdkGLContextPrivate *priv = gdk_gl_context_get_instance_private (context);
 
   g_return_if_fail (GDK_IS_GL_CONTEXT (context));
-  g_return_if_fail (gdk_gl_context_is_realized (context));
+  g_return_if_fail (!gdk_gl_context_is_realized (context));
 
   enabled = !!enabled;
 
@@ -901,7 +901,7 @@ gdk_gl_context_set_forward_compatible (GdkGLContext *context,
   GdkGLContextPrivate *priv = gdk_gl_context_get_instance_private (context);
 
   g_return_if_fail (GDK_IS_GL_CONTEXT (context));
-  g_return_if_fail (gdk_gl_context_is_realized (context));
+  g_return_if_fail (!gdk_gl_context_is_realized (context));
 
   compatible = !!compatible;
 
@@ -1265,7 +1265,7 @@ gdk_gl_context_set_use_es (GdkGLContext *context,
                            int           use_es)
 {
   g_return_if_fail (GDK_IS_GL_CONTEXT (context));
-  g_return_if_fail (gdk_gl_context_is_realized (context));
+  g_return_if_fail (!gdk_gl_context_is_realized (context));
 
   switch (use_es)
   {


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