Commit ef291433 authored by Laurent Aimar's avatar Laurent Aimar

Implemented vlc_gl_t::getProcAddress() for glwin32.

parent 64275f77
......@@ -67,6 +67,7 @@ static int Control(vout_display_t *, int, va_list);
static void Manage (vout_display_t *);
static void Swap (vlc_gl_t *);
static void *GetProcAddress(vlc_gl_t *, const char *);
/**
* It creates an OpenGL vout display.
......@@ -111,7 +112,7 @@ static int Open(vlc_object_t *object)
sys->gl.lock = NULL;
sys->gl.unlock = NULL;
sys->gl.swap = Swap;
sys->gl.getProcAddress = NULL;
sys->gl.getProcAddress = GetProcAddress;
sys->gl.sys = vd;
video_format_t fmt = vd->fmt;
......@@ -228,3 +229,8 @@ static void Swap(vlc_gl_t *gl)
SwapBuffers(vd->sys->hGLDC);
}
static void *GetProcAddress(vlc_gl_t *gl, const char *name)
{
return wglGetProcAddress(name);
}
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