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:
parent
269b96d75e
commit
4a8486f844
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user