summaryrefslogtreecommitdiff
path: root/gdk/mir
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-02-12 17:30:42 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-02-12 17:51:31 +0000
commitd066e7541e63ea621ef983c31c1652d295150b12 (patch)
tree1665ef9c2099ea85bf52f640d3d9cbe89099dbaf /gdk/mir
parentccc0eafbc335d6f422f12d118e69579226e440a3 (diff)
downloadgtk+-d066e7541e63ea621ef983c31c1652d295150b12.tar.gz
Remove GdkGLProfile
The existence of OpenGL implementations that do not provide the full core profile compatibility because of reasons beyond the technical, like llvmpipe not implementing floating point buffers, makes the existence of GdkGLProfile and documenting the fact that we use core profiles a bit harder. Since we do not have any existing profile except the default, we can remove the GdkGLProfile and its related API from GDK and GTK+, and sweep the whole thing under the carpet, while we wait for an extension that lets us ask for the most compatible profile possible. https://bugzilla.gnome.org/show_bug.cgi?id=744407
Diffstat (limited to 'gdk/mir')
-rw-r--r--gdk/mir/gdkmirglcontext.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gdk/mir/gdkmirglcontext.c b/gdk/mir/gdkmirglcontext.c
index e792577836..9506461f1c 100644
--- a/gdk/mir/gdkmirglcontext.c
+++ b/gdk/mir/gdkmirglcontext.c
@@ -35,7 +35,6 @@ gdk_mir_gl_context_realize (GdkGLContext *context,
GdkMirGLContext *context_mir = GDK_MIR_GL_CONTEXT (context);
GdkDisplay *display = gdk_gl_context_get_display (context);
GdkGLContext *share = gdk_gl_context_get_shared_context (context);
- GdkGLProfile profile = gdk_gl_context_get_profile (context);
EGLContext ctx;
EGLint context_attribs[N_EGL_ATTRS];
int major, minor, flags;
@@ -50,18 +49,6 @@ gdk_mir_gl_context_realize (GdkGLContext *context,
return FALSE;
}
- /* "default profile" means 3.2 core profile */
- if (profile == GDK_GL_PROFILE_DEFAULT)
- profile = GDK_GL_PROFILE_3_2_CORE;
-
- if (profile != GDK_GL_PROFILE_3_2_CORE)
- {
- g_set_error_literal (error, GDK_GL_ERROR,
- GDK_GL_ERROR_UNSUPPORTED_PROFILE,
- _("Unsupported profile for a GL context"));
- return FALSE;
- }
-
gdk_gl_context_get_required_version (context, &major, &minor);
debug_bit = gdk_gl_context_get_debug_enabled (context);
forward_bit = gdk_gl_context_get_forward_compatible (context);