diff options
author | marha <marha@users.sourceforge.net> | 2011-11-07 08:32:50 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-11-07 08:32:50 +0100 |
commit | 09c0aa163ab00fcf51c0a217c5efec55e32361d6 (patch) | |
tree | c1f2b2aa01c25a2d1f8aae0f459fd51523715ab4 /mesalib/src/mapi/glapi/gen/gl_gentable.py | |
parent | af3f3672e5f77a06a24b1e648ee118f1420b45ae (diff) | |
download | vcxsrv-09c0aa163ab00fcf51c0a217c5efec55e32361d6.tar.gz vcxsrv-09c0aa163ab00fcf51c0a217c5efec55e32361d6.tar.bz2 vcxsrv-09c0aa163ab00fcf51c0a217c5efec55e32361d6.zip |
Synchronised files
Diffstat (limited to 'mesalib/src/mapi/glapi/gen/gl_gentable.py')
-rw-r--r-- | mesalib/src/mapi/glapi/gen/gl_gentable.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/mesalib/src/mapi/glapi/gen/gl_gentable.py b/mesalib/src/mapi/glapi/gen/gl_gentable.py index 814238a76..28d9fb104 100644 --- a/mesalib/src/mapi/glapi/gen/gl_gentable.py +++ b/mesalib/src/mapi/glapi/gen/gl_gentable.py @@ -34,7 +34,11 @@ import gl_XML, glX_XML import sys, getopt header = """ -#if defined(DEBUG) && !defined(_WIN32_WCE) +#ifdef HAVE_DIX_CONFIG_H +#include <dix-config.h> +#endif + +#ifdef HAVE_BACKTRACE #include <execinfo.h> #endif @@ -47,11 +51,15 @@ header = """ #include "glapi.h" #include "glapitable.h" +#include "os.h" + static void __glapi_gentable_NoOp(void) { #if defined(DEBUG) && !defined(_WIN32_WCE) if (getenv("MESA_DEBUG") || getenv("LIBGL_DEBUG")) { const char *fstr = "Unknown"; + +#ifdef HAVE_BACKTRACE void *frames[2]; if(backtrace(frames, 2) == 2) { @@ -60,8 +68,9 @@ __glapi_gentable_NoOp(void) { if(info.dli_sname) fstr = info.dli_sname; } +#endif - fprintf(stderr, "Call to unimplemented API: %s\\n", fstr); + LogMessage(X_ERROR, "GLX: Call to unimplemented API: %s\\n", fstr); } #endif } |