segmentation fault relating to initialiseGL, passing to shifaz