diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-02-09 16:08:43 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-02-09 19:10:30 +0000 |
commit | 601c49ef39376a34358f87ef6ed3ae0c49130cb3 (patch) | |
tree | d9f2889ee97a931c06d1404f48f425d12421c020 /gdk/gdkglcontext.c | |
parent | 2d9081d117de009f32d68bcf9beb7d4aac342ba4 (diff) | |
download | gtk+-601c49ef39376a34358f87ef6ed3ae0c49130cb3.tar.gz |
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
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; |