1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 10:32:15 +00:00

Try to detect and work around broken glXGetProcAddress on at

least PPC OS X 10.4.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30994 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-04-03 20:31:03 +00:00
parent 269b96d75e
commit 4a8486f844

View File

@ -1768,6 +1768,12 @@ static int setGlWindow_x11(MPGLContext *ctx)
appendstr(&glxstr, glXExtStr(mDisplay, GLX_EXTENSIONS));
getFunctions(getProcAddress, glxstr);
if (!mpglGenPrograms && mpglGetString &&
getProcAddress != (void *)getdladdr &&
strstr(mpglGetString(GL_EXTENSIONS), "GL_ARB_vertex_program")) {
mp_msg(MSGT_VO, MSGL_WARN, "Broken glXGetProcAddress detected, trying workaround\n");
getFunctions((void *)getdladdr, glxstr);
}
free(glxstr);
// and inform that reinit is neccessary