Commit 601c49ef authored by Emmanuele Bassi's avatar Emmanuele Bassi 👣
Browse files

gl: Clean up pre-requisite checks for GdkGLContext setters

We don't support non-core profiles.
parent 2d9081d1
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment