]> git.sesse.net Git - vlc/blobdiff - include/vlc_opengl.h
mft: add missing dependency on h264_nal.{c,h}
[vlc] / include / vlc_opengl.h
index 10fed62f55e8b374996c775ebd7867ee6d3efafe..1cc8ca241beb974a17d3a4bf9486313cdaa1d17e 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * vlc_gl.h: VLC GL API
+ * vlc_opengl.h: VLC GL API
  *****************************************************************************
  * Copyright (C) 2009 Laurent Aimar
  * Copyright (C) 2011 RĂ©mi Denis-Courmont
@@ -45,6 +45,7 @@ struct vlc_gl_t
     void *sys;
 
     int  (*makeCurrent)(vlc_gl_t *);
+    void (*releaseCurrent)(vlc_gl_t *);
     void (*swap)(vlc_gl_t *);
     int  (*lock)(vlc_gl_t *);
     void (*unlock)(vlc_gl_t *);
@@ -65,6 +66,11 @@ static inline int vlc_gl_MakeCurrent(vlc_gl_t *gl)
     return gl->makeCurrent(gl);
 }
 
+static inline void vlc_gl_ReleaseCurrent(vlc_gl_t *gl)
+{
+    gl->releaseCurrent(gl);
+}
+
 static inline int vlc_gl_Lock(vlc_gl_t *gl)
 {
     return (gl->lock != NULL) ? gl->lock(gl) : VLC_SUCCESS;