]> git.sesse.net Git - vlc/blobdiff - include/vlc_opengl.h
contrib: dvdread: fix dvdcss check on darwin
[vlc] / include / vlc_opengl.h
index 64e4b7dc58ac92db2ed2de8d96e3f5338da8427a..c32ab682ca6cc26e2b4205ca7977984fea945709 100644 (file)
@@ -48,6 +48,7 @@ struct vlc_gl_t
     void (*swap)(vlc_gl_t *);
     int  (*lock)(vlc_gl_t *);
     void (*unlock)(vlc_gl_t *);
+    void*(*getProcAddress)(vlc_gl_t *, const char *);
 };
 
 enum {
@@ -80,4 +81,9 @@ static inline void vlc_gl_Swap(vlc_gl_t *gl)
     gl->swap(gl);
 }
 
+static inline void *vlc_gl_GetProcAddress(vlc_gl_t *gl, const char *name)
+{
+    return (gl->getProcAddress != NULL) ? gl->getProcAddress(gl, name) : NULL;
+}
+
 #endif /* VLC_GL_H */