utils: drop unused GLX helpers.

Remove helpers for GL_ARB_fragment_program and GL_ARB_multitexture
extensions since they are not used throughout gstreamer-vaapi.
This commit is contained in:
Gwenole Beauchesne 2012-09-27 11:08:58 +02:00
parent 5db2e93d3c
commit a6a1ea09a3
2 changed files with 0 additions and 65 deletions

View file

@ -728,54 +728,6 @@ gl_init_vtable(void)
return NULL;
gl_vtable->has_framebuffer_object = TRUE;
}
/* GL_ARB_fragment_program */
has_extension = (
find_string("GL_ARB_fragment_program", gl_extensions, " ")
);
if (has_extension) {
gl_vtable->gl_gen_programs = (PFNGLGENPROGRAMSARBPROC)
get_proc_address("glGenProgramsARB");
if (!gl_vtable->gl_gen_programs)
return NULL;
gl_vtable->gl_delete_programs = (PFNGLDELETEPROGRAMSARBPROC)
get_proc_address("glDeleteProgramsARB");
if (!gl_vtable->gl_delete_programs)
return NULL;
gl_vtable->gl_bind_program = (PFNGLBINDPROGRAMARBPROC)
get_proc_address("glBindProgramARB");
if (!gl_vtable->gl_bind_program)
return NULL;
gl_vtable->gl_program_string = (PFNGLPROGRAMSTRINGARBPROC)
get_proc_address("glProgramStringARB");
if (!gl_vtable->gl_program_string)
return NULL;
gl_vtable->gl_get_program_iv = (PFNGLGETPROGRAMIVARBPROC)
get_proc_address("glGetProgramivARB");
if (!gl_vtable->gl_get_program_iv)
return NULL;
gl_vtable->gl_program_local_parameter_4fv = (PFNGLPROGRAMLOCALPARAMETER4FVARBPROC)
get_proc_address("glProgramLocalParameter4fvARB");
if (!gl_vtable->gl_program_local_parameter_4fv)
return NULL;
gl_vtable->has_fragment_program = TRUE;
}
/* GL_ARB_multitexture */
has_extension = (
find_string("GL_ARB_multitexture", gl_extensions, " ")
);
if (has_extension) {
gl_vtable->gl_active_texture = (PFNGLACTIVETEXTUREPROC)
get_proc_address("glActiveTextureARB");
if (!gl_vtable->gl_active_texture)
return NULL;
gl_vtable->gl_multi_tex_coord_2f = (PFNGLMULTITEXCOORD2FPROC)
get_proc_address("glMultiTexCoord2fARB");
if (!gl_vtable->gl_multi_tex_coord_2f)
return NULL;
gl_vtable->has_multitexture = TRUE;
}
return gl_vtable;
}

View file

@ -41,13 +41,6 @@ typedef GLXPixmap (*PFNGLXCREATEPIXMAPPROC)(Display *, GLXFBConfig, Pixmap, cons
typedef void (*PFNGLXDESTROYPIXMAPPROC)(Display *, GLXPixmap);
#endif
#if GL_GLEXT_VERSION >= 85
/* XXX: PFNGLMULTITEXCOORD2FPROC got out of the GL_VERSION_1_3_DEPRECATED
block and is not defined if GL_VERSION_1_3 is defined in <GL/gl.h>
Redefine the type here as an interim solution */
typedef void (*PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
#endif
#ifndef GL_FRAMEBUFFER_BINDING
#define GL_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING_EXT
#endif
@ -145,18 +138,8 @@ struct _GLVTable {
PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC gl_framebuffer_renderbuffer;
PFNGLFRAMEBUFFERTEXTURE2DEXTPROC gl_framebuffer_texture_2d;
PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC gl_check_framebuffer_status;
PFNGLGENPROGRAMSARBPROC gl_gen_programs;
PFNGLDELETEPROGRAMSARBPROC gl_delete_programs;
PFNGLBINDPROGRAMARBPROC gl_bind_program;
PFNGLPROGRAMSTRINGARBPROC gl_program_string;
PFNGLGETPROGRAMIVARBPROC gl_get_program_iv;
PFNGLPROGRAMLOCALPARAMETER4FVARBPROC gl_program_local_parameter_4fv;
PFNGLACTIVETEXTUREPROC gl_active_texture;
PFNGLMULTITEXCOORD2FPROC gl_multi_tex_coord_2f;
guint has_texture_from_pixmap : 1;
guint has_framebuffer_object : 1;
guint has_fragment_program : 1;
guint has_multitexture : 1;
};
G_GNUC_INTERNAL