I have an an OSX OpenGL app I\'m trying to modify. When I create the app a whole bunch of initialisation functions are called -- including methods where I can specify my own
If you are using C/C++ maybe you can use an atexit() call?