You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mesa-7.6-glx13-app-warning.patch 1017B

12345678910111213141516171819202122232425262728
  1. diff -up mesa-20091030/src/glx/x11/glx_pbuffer.c.jx mesa-20091030/src/glx/x11/glx_pbuffer.c
  2. --- mesa-20091030/src/glx/x11/glx_pbuffer.c.jx 2009-10-29 21:12:50.000000000 -0400
  3. +++ mesa-20091030/src/glx/x11/glx_pbuffer.c 2009-11-17 14:56:07.000000000 -0500
  4. @@ -35,6 +35,8 @@
  5. #include <X11/extensions/Xext.h>
  6. #include <assert.h>
  7. #include <string.h>
  8. +#include <unistd.h>
  9. +#include <limits.h>
  10. #include "glapi.h"
  11. #include "glxextensions.h"
  12. #include "glcontextmodes.h"
  13. @@ -56,10 +58,13 @@ warn_GLX_1_3(Display *dpy, const char *f
  14. __GLXdisplayPrivate *priv = __glXInitialize(dpy);
  15. if (priv->minorVersion < 3) {
  16. + char buf[PATH_MAX];
  17. + if (readlink("/proc/self/exe", buf, PATH_MAX) == -1)
  18. + buf[0] = '\0';
  19. fprintf(stderr,
  20. - "WARNING: Application calling GLX 1.3 function \"%s\" "
  21. + "WARNING: Application %s calling GLX 1.3 function \"%s\" "
  22. "when GLX 1.3 is not supported! This is an application bug!\n",
  23. - function_name);
  24. + buf, function_name);
  25. }
  26. }