forked from AuroraMiddleware/gtk
x11/gl: Removing some more legacy GL calls
They are not required any more. http://bugzilla.gnome.org/show_bug.cgi?id=746668
This commit is contained in:
parent
6bd7526ee7
commit
641e280311
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user