[gtk/wip/otte/for-master: 1/6] glcontext: reinstate another missing "!"




commit 79d2a14061d29538675f8ba7fd7c94c4a9798a00
Author: Benjamin Otte <otte redhat com>
Date:   Sun Oct 17 18:46:01 2021 +0200

    glcontext: reinstate another missing "!"
    
    A leftover from aa0c22b64813a406da9854fd079579d87181a97b.

 gdk/gdkglcontext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index 640c8bf1fc..32bb0cdbed 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -954,7 +954,7 @@ gdk_gl_context_set_required_version (GdkGLContext *context,
 #endif
 
   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));
 
   /* this will take care of the default */
   if (major == 0 && minor == 0)


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