A new user interface for you! Read more...

File mesa-7.6-glx13-app-warning.patch of Package mesa

diff -up Mesa-7.10/src/glx/glx_pbuffer.c.glx13-warning Mesa-7.10/src/glx/glx_pbuffer.c
--- Mesa-7.10/src/glx/glx_pbuffer.c.glx13-warning	2010-10-20 03:58:29.000000000 +1000
+++ Mesa-7.10/src/glx/glx_pbuffer.c	2011-01-14 16:53:16.689176943 +1000
@@ -35,6 +35,8 @@
 #include <X11/extensions/Xext.h>
 #include <assert.h>
 #include <string.h>
+#include <unistd.h>
+#include <limits.h>
 #include "glxextensions.h"
 
 #ifdef GLX_USE_APPLEGL
@@ -60,10 +62,13 @@ warn_GLX_1_3(Display * dpy, const char *
    struct glx_display *priv = __glXInitialize(dpy);
 
    if (priv->minorVersion < 3) {
+      char buf[PATH_MAX];
+      if (readlink("/proc/self/exe", buf, PATH_MAX) == -1)
+         buf[0] = '\0';
       fprintf(stderr,
-              "WARNING: Application calling GLX 1.3 function \"%s\" "
+              "WARNING: Application %s calling GLX 1.3 function \"%s\" "
               "when GLX 1.3 is not supported!  This is an application bug!\n",
-              function_name);
+              buf, function_name);
    }
 }