diff options
Diffstat (limited to 'gdk/gdkglcontext.c')
-rw-r--r-- | gdk/gdkglcontext.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c index bb914f71af..06f19e875f 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; |