Commit 8f93cd2d authored by Laurent Aimar's avatar Laurent Aimar

Used glXGetProcAddressARB() when possible otherwise return NULL in glx.

It is more compatible than to use glXGetProcAddress() which is not always
present (need opengl >= 1.4).
parent b23bbc5d
......@@ -470,7 +470,11 @@ static void SwapBuffers (vlc_gl_t *gl)
static void *GetProcAddress (vlc_gl_t *gl, const char *name)
{
(void)gl;
return glXGetProcAddress ((const GLubyte *)name);
#ifdef GLX_ARB_get_proc_address
return glXGetProcAddressARB ((const GLubyte *)name);
#else
return NULL;
#endif
}
/**
......
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