summaryrefslogtreecommitdiff
path: root/gdk/gdkglcontext.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-01-28 19:04:22 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-02-09 19:10:30 +0000
commit4b8b3b431bfba9fa9bc68ebc95af13a32ea8a7ad (patch)
treec7e23badeb709fda505f0e20404dd25c602ad1d3 /gdk/gdkglcontext.c
parent6aaa6c337bc85913f0f898239cd678fef2a89b20 (diff)
downloadgtk+-4b8b3b431bfba9fa9bc68ebc95af13a32ea8a7ad.tar.gz
gl: Drop OpenGL legacy profile
We simply don't want to care about legacy OpenGL. All supported platforms also have support for OpenGL ≥ 3.2; it would complicate the internal code; and would force us to use legacy GL contexts internally if the first context created by the user is a legacy GL context, and disable creation of core-3.2 contexts after that. We will need to fix all our code examples to use the Core 3.2 profile. https://bugzilla.gnome.org/show_bug.cgi?id=741946
Diffstat (limited to 'gdk/gdkglcontext.c')
-rw-r--r--gdk/gdkglcontext.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index 55ee9f1ca6..3ffaf8f8c2 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -553,11 +553,6 @@ gdk_gl_context_get_required_version (GdkGLContext *context,
switch (priv->profile)
{
case GDK_GL_PROFILE_DEFAULT:
- case GDK_GL_PROFILE_LEGACY:
- if (major != NULL)
- *major = 1;
- break;
-
case GDK_GL_PROFILE_3_2_CORE:
if (major != NULL)
*major = 3;
@@ -572,11 +567,6 @@ gdk_gl_context_get_required_version (GdkGLContext *context,
switch (priv->profile)
{
case GDK_GL_PROFILE_DEFAULT:
- case GDK_GL_PROFILE_LEGACY:
- if (minor != NULL)
- *minor = 0;
- break;
-
case GDK_GL_PROFILE_3_2_CORE:
if (minor != NULL)
*minor = 2;
@@ -740,7 +730,7 @@ gdk_gl_context_get_profile (GdkGLContext *context)
{
GdkGLContextPrivate *priv = gdk_gl_context_get_instance_private (context);
- g_return_val_if_fail (GDK_IS_GL_CONTEXT (context), GDK_GL_PROFILE_LEGACY);
+ g_return_val_if_fail (GDK_IS_GL_CONTEXT (context), GDK_GL_PROFILE_DEFAULT);
return priv->profile;
}