blob: c23bc0e5052faa05f15d7e4edc8e7e84e7a22e72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
diff -up mesa-20091030/src/glx/x11/glx_pbuffer.c.jx mesa-20091030/src/glx/x11/glx_pbuffer.c
--- mesa-20091030/src/glx/x11/glx_pbuffer.c.jx 2009-10-29 21:12:50.000000000 -0400
+++ mesa-20091030/src/glx/x11/glx_pbuffer.c 2009-11-17 14:56:07.000000000 -0500
@@ -35,6 +35,8 @@
#include <X11/extensions/Xext.h>
#include <assert.h>
#include <string.h>
+#include <unistd.h>
+#include <limits.h>
#include "glapi.h"
#include "glxextensions.h"
#include "glcontextmodes.h"
@@ -56,10 +58,13 @@ warn_GLX_1_3(Display *dpy, const char *f
__GLXdisplayPrivate *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);
}
}
|