/*****************************************************************************
- * vlc_gl.h: VLC GL API
+ * vlc_opengl.h: VLC GL API
*****************************************************************************
* Copyright (C) 2009 Laurent Aimar
* Copyright (C) 2011 RĂ©mi Denis-Courmont
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 *);
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;