From 641e280311316d8aad6ea9050b8fdd181598e59d Mon Sep 17 00:00:00 2001 From: Niels Nesse Date: Mon, 23 Mar 2015 22:15:08 +0000 Subject: [PATCH] x11/gl: Removing some more legacy GL calls They are not required any more. http://bugzilla.gnome.org/show_bug.cgi?id=746668 --- gdk/x11/gdkglcontext-x11.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gdk/x11/gdkglcontext-x11.c b/gdk/x11/gdkglcontext-x11.c index 82f50710d7..bc36424faf 100644 --- a/gdk/x11/gdkglcontext-x11.c +++ b/gdk/x11/gdkglcontext-x11.c @@ -462,10 +462,6 @@ gdk_x11_gl_context_texture_from_surface (GdkGLContext *paint_context, glGenTextures (1, &texture_id); glBindTexture (target, texture_id); - /* glEnable(GL_TEXTURE_2D) is deprecated */ - if (target != GL_TEXTURE_2D) - glEnable (target); - glTexParameteri (target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri (target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexParameteri (target, GL_TEXTURE_MIN_FILTER, GL_NEAREST); @@ -529,9 +525,6 @@ gdk_x11_gl_context_texture_from_surface (GdkGLContext *paint_context, glXReleaseTexImageEXT (glx_pixmap->display, glx_pixmap->drawable, GLX_FRONT_LEFT_EXT); - if (target != GL_TEXTURE_2D) - glDisable (target); - glDeleteTextures (1, &texture_id); glx_pixmap_destroy(glx_pixmap);