[MPlayer-cvslog] r30994 - trunk/libvo/gl_common.c

reimar subversion at mplayerhq.hu
Sat Apr 3 22:31:03 CEST 2010


Author: reimar
Date: Sat Apr  3 22:31:03 2010
New Revision: 30994

Log:
Try to detect and work around broken glXGetProcAddress on at
least PPC OS X 10.4.

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Sat Apr  3 21:58:06 2010	(r30993)
+++ trunk/libvo/gl_common.c	Sat Apr  3 22:31:03 2010	(r30994)
@@ -1768,6 +1768,12 @@ static int setGlWindow_x11(MPGLContext *
         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


More information about the MPlayer-cvslog mailing list