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

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:33:13 2011 +0200| [ef29143350b942364808d6ccc9ba230604f82b54] | committer: Laurent Aimar

Implemented vlc_gl_t::getProcAddress() for glwin32.

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

 modules/video_output/msw/glwin32.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/msw/glwin32.c b/modules/video_output/msw/glwin32.c
index dcbb6ab..83d0ddf 100644
--- a/modules/video_output/msw/glwin32.c
+++ b/modules/video_output/msw/glwin32.c
@@ -67,6 +67,7 @@ static int            Control(vout_display_t *, int, va_list);
 static void           Manage (vout_display_t *);
 
 static void           Swap   (vlc_gl_t *);
+static void          *GetProcAddress(vlc_gl_t *, const char *);
 
 /**
  * It creates an OpenGL vout display.
@@ -111,7 +112,7 @@ static int Open(vlc_object_t *object)
     sys->gl.lock = NULL;
     sys->gl.unlock = NULL;
     sys->gl.swap = Swap;
-    sys->gl.getProcAddress = NULL;
+    sys->gl.getProcAddress = GetProcAddress;
     sys->gl.sys = vd;
 
     video_format_t fmt = vd->fmt;
@@ -228,3 +229,8 @@ static void Swap(vlc_gl_t *gl)
     SwapBuffers(vd->sys->hGLDC);
 }
 
+static void *GetProcAddress(vlc_gl_t *gl, const char *name)
+{
+    return wglGetProcAddress(name);
+}
+



More information about the vlc-commits mailing list