[gtk+] gl: Clean up pre-requisite checks for GdkGLContext setters



commit 601c49ef39376a34358f87ef6ed3ae0c49130cb3
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Feb 9 16:08:43 2015 +0000

    gl: Clean up pre-requisite checks for GdkGLContext setters
    
    We don't support non-core profiles.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741946

 gdk/gdkglcontext.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index bb914f7..06f19e8 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -419,7 +419,6 @@ gdk_gl_context_set_debug_enabled (GdkGLContext *context,
 
   g_return_if_fail (GDK_IS_GL_CONTEXT (context));
   g_return_if_fail (!priv->realized);
-  g_return_if_fail (priv->profile == GDK_GL_PROFILE_3_2_CORE);
 
   enabled = !!enabled;
 
@@ -471,6 +470,9 @@ 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 (!priv->realized);
+
   compatible = !!compatible;
 
   priv->forward_compatible = compatible;


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