[Libva] [PATCH] gst-vaapi: remove get_proc_address() for GL_ARB_multitexture

Zhao Halley halley.zhao at intel.com
Mon Oct 29 01:03:18 PDT 2012


  follows mesa glext.h update
---
 gst-libs/gst/vaapi/gstvaapiutils_glx.c |   15 ---------------
 gst-libs/gst/vaapi/gstvaapiutils_glx.h |    3 ---
 2 files changed, 18 deletions(-)

diff --git a/gst-libs/gst/vaapi/gstvaapiutils_glx.c b/gst-libs/gst/vaapi/gstvaapiutils_glx.c
index 4dbf834..1494e84 100644
--- a/gst-libs/gst/vaapi/gstvaapiutils_glx.c
+++ b/gst-libs/gst/vaapi/gstvaapiutils_glx.c
@@ -761,21 +761,6 @@ gl_init_vtable(void)
         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;
 }
 
diff --git a/gst-libs/gst/vaapi/gstvaapiutils_glx.h b/gst-libs/gst/vaapi/gstvaapiutils_glx.h
index c9a4983..c3696af 100644
--- a/gst-libs/gst/vaapi/gstvaapiutils_glx.h
+++ b/gst-libs/gst/vaapi/gstvaapiutils_glx.h
@@ -144,12 +144,9 @@ struct _GLVTable {
     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
-- 
1.7.9.5



More information about the Libva mailing list