Useful to debug glretrace with apitrace itself.
#include <stdlib.h>
#include <iostream>
#include <stdlib.h>
#include <iostream>
#include <Cocoa/Cocoa.h>
#include "glws.hpp"
#include <Cocoa/Cocoa.h>
#include "glws.hpp"
+ // Prevent glproc to load system's OpenGL, so that we can trace glretrace.
+ _libGlHandle = dlopen("OpenGL", RTLD_LOCAL | RTLD_NOW | RTLD_FIRST);
+
[NSApplication sharedApplication];
autoreleasePool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
autoreleasePool = [[NSAutoreleasePool alloc] init];