[vlc-commits] EGL: implement GetProcAddress

Rémi Denis-Courmont git at videolan.org
Wed May 25 22:01:04 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 25 23:00:48 2011 +0300| [90ed2da475a475603ba993e11920123bf6a98573] | committer: Rémi Denis-Courmont

EGL: implement GetProcAddress

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

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

diff --git a/modules/video_output/egl.c b/modules/video_output/egl.c
index d4416fc..d141bf1 100644
--- a/modules/video_output/egl.c
+++ b/modules/video_output/egl.c
@@ -70,6 +70,7 @@ typedef struct vlc_gl_sys_t
 /* OpenGL callbacks */
 static int MakeCurrent (vlc_gl_t *);
 static void SwapBuffers (vlc_gl_t *);
+static void *GetProcAddress(vlc_gl_t *, const char *);
 
 static bool CheckAPI (EGLDisplay dpy, const char *api)
 {
@@ -193,9 +194,9 @@ static int Open (vlc_object_t *obj, const struct gl_api *api)
     gl->sys = sys;
     gl->makeCurrent = MakeCurrent;
     gl->swap = SwapBuffers;
+    gl->getProcAddress = GetProcAddress;
     gl->lock = NULL;
     gl->unlock = NULL;
-    gl->getProcAddress = NULL;
     return VLC_SUCCESS;
 
 error:
@@ -255,3 +256,9 @@ static void SwapBuffers (vlc_gl_t *gl)
 
     eglSwapBuffers (sys->display, sys->surface);
 }
+
+static void *GetProcAddress(vlc_gl_t *gl, const char *procname)
+{
+    (void) gl;
+    return (void *)eglGetProcAddress (procname);
+}



More information about the vlc-commits mailing list