They are superseded by makeCurrent() and releaseCurrent().
void (*releaseCurrent)(vlc_gl_t *);
void (*resize)(vlc_gl_t *, unsigned, unsigned);
void (*swap)(vlc_gl_t *);
void (*releaseCurrent)(vlc_gl_t *);
void (*resize)(vlc_gl_t *, unsigned, unsigned);
void (*swap)(vlc_gl_t *);
int (*lock)(vlc_gl_t *);
void (*unlock)(vlc_gl_t *);
int (*lock)(vlc_gl_t *);
void (*unlock)(vlc_gl_t *);
void*(*getProcAddress)(vlc_gl_t *, const char *);
};
void*(*getProcAddress)(vlc_gl_t *, const char *);
};
static inline int vlc_gl_Lock(vlc_gl_t *gl)
{
static inline int vlc_gl_Lock(vlc_gl_t *gl)
{
return (gl->lock != NULL) ? gl->lock(gl) : VLC_SUCCESS;
return (gl->lock != NULL) ? gl->lock(gl) : VLC_SUCCESS;
+#else
+ (void) gl; return VLC_SUCCESS;
+#endif
}
static inline void vlc_gl_Unlock(vlc_gl_t *gl)
{
}
static inline void vlc_gl_Unlock(vlc_gl_t *gl)
{
if (gl->unlock != NULL)
gl->unlock(gl);
if (gl->unlock != NULL)
gl->unlock(gl);
+#else
+ (void) gl;
+#endif
}
static inline void vlc_gl_Resize(vlc_gl_t *gl, unsigned w, unsigned h)
}
static inline void vlc_gl_Resize(vlc_gl_t *gl, unsigned w, unsigned h)
gl->resize = Resize;
gl->swap = SwapBuffers;
gl->getProcAddress = GetSymbol;
gl->resize = Resize;
gl->swap = SwapBuffers;
gl->getProcAddress = GetSymbol;
- gl->lock = NULL;
- gl->unlock = NULL;
return VLC_SUCCESS;
error:
return VLC_SUCCESS;
error:
gl->resize = NULL;
gl->swap = SwapBuffers;
gl->getProcAddress = GetSymbol;
gl->resize = NULL;
gl->swap = SwapBuffers;
gl->getProcAddress = GetSymbol;
- gl->lock = NULL;
- gl->unlock = NULL;
#ifdef GLX_ARB_get_proc_address
bool is_swap_interval_set = false;
#ifdef GLX_ARB_get_proc_address
bool is_swap_interval_set = false;
- sys->gl.lock = NULL;
- sys->gl.unlock = NULL;
sys->gl.swap = Swap;
sys->gl.getProcAddress = OurGetProcAddress;
sys->gl.sys = vd;
sys->gl.swap = Swap;
sys->gl.getProcAddress = OurGetProcAddress;
sys->gl.sys = vd;