Commit 64275f77 authored by Laurent Aimar's avatar Laurent Aimar

Implemented vlc_gl_t::getProcAddress() for glx.

parent c1763208
......@@ -82,6 +82,7 @@ static int Control (vout_display_t *, int, va_list);
static void Manage (vout_display_t *);
static void SwapBuffers (vlc_gl_t *gl);
static void *GetProcAddress (vlc_gl_t *gl, const char *);
static vout_window_t *MakeWindow (vout_display_t *vd)
{
......@@ -362,7 +363,7 @@ static int Open (vlc_object_t *obj)
sys->gl.lock = NULL;
sys->gl.unlock = NULL;
sys->gl.swap = SwapBuffers;
sys->gl.getProcAddress = NULL;
sys->gl.getProcAddress = GetProcAddress;
sys->gl.sys = sys;
if (vout_display_opengl_Init (&sys->vgl, &vd->fmt, &sys->gl))
......@@ -444,6 +445,12 @@ static void SwapBuffers (vlc_gl_t *gl)
glXSwapBuffers (sys->display, sys->glwin);
}
static void *GetProcAddress (vlc_gl_t *gl, const char *name)
{
(void)gl;
return glXGetProcAddress ((const GLubyte *)name);
}
/**
* Return a direct buffer
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment