]> git.cworth.org Git - apitrace/blobdiff - glimports.hpp
Mac OS X: Fix getProcessName() to avoid assertion failure in truncate
[apitrace] / glimports.hpp
index caa3a4e9c20ac2c6d1362b219ac0de8d39c4497e..b5cdb4b279e6b80c0f94683b5aa4e4619195fc0a 100644 (file)
@@ -107,6 +107,12 @@ typedef struct _WGLSWAP
 #include <OpenGL/CGLIOSurface.h>
 #include <OpenGL/CGLDevice.h>
 
+#ifndef CGL_VERSION_1_3
+#define kCGLPFAOpenGLProfile 99
+#define kCGLOGLPVersion_Legacy 0x1000
+#define kCGLOGLPVersion_3_2_Core 0x3200
+#endif
+
 extern "C" {
 
 // From http://www.opensource.apple.com/source/gdb/gdb-954/libcheckpoint/cpcg.c
@@ -125,7 +131,7 @@ CGLError CGLUpdateContext(CGLContextObj ctx);
 #include <GL/glx.h>
 #include "glext/glxext.h"
 
-/* Prevent collision with Trace::Bool */
+/* Prevent collision with trace::Bool */
 #undef Bool
 
 #endif