[vlc-commits] Implemented vlc_gl_t::getProcAddress() for glx.

Laurent Aimar git at videolan.org
Wed May 25 21:48:54 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed May 25 21:26:51 2011 +0200| [64275f7772484f2768ce3c7216a000ec04b4ee46] | committer: Laurent Aimar

Implemented vlc_gl_t::getProcAddress() for glx.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64275f7772484f2768ce3c7216a000ec04b4ee46
---

 modules/video_output/xcb/glx.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index 4ba551d..e943111 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -82,6 +82,7 @@ static int Control (vout_display_t *, int, va_list);
 static void Manage (vout_display_t *);
 
 static void SwapBuffers (vlc_gl_t *gl);
+static void *GetProcAddress (vlc_gl_t *gl, const char *);
 
 static vout_window_t *MakeWindow (vout_display_t *vd)
 {
@@ -362,7 +363,7 @@ static int Open (vlc_object_t *obj)
     sys->gl.lock = NULL;
     sys->gl.unlock = NULL;
     sys->gl.swap = SwapBuffers;
-    sys->gl.getProcAddress = NULL;
+    sys->gl.getProcAddress = GetProcAddress;
     sys->gl.sys = sys;
 
     if (vout_display_opengl_Init (&sys->vgl, &vd->fmt, &sys->gl))
@@ -444,6 +445,12 @@ static void SwapBuffers (vlc_gl_t *gl)
     glXSwapBuffers (sys->display, sys->glwin);
 }
 
+static void *GetProcAddress (vlc_gl_t *gl, const char *name)
+{
+    (void)gl;
+    return glXGetProcAddress ((const GLubyte *)name);
+}
+
 /**
  * Return a direct buffer
  */



More information about the vlc-commits mailing list