[gtk+] x11/gl: Removing some more legacy GL calls



commit 641e280311316d8aad6ea9050b8fdd181598e59d
Author: Niels Nesse <nnesse sonic net>
Date:   Mon Mar 23 22:15:08 2015 +0000

    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 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gdk/x11/gdkglcontext-x11.c b/gdk/x11/gdkglcontext-x11.c
index 82f5071..bc36424 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]