Too late. Must sleep. gluBuild2dMipMaps causes a segfault. Still have to communicate information to raytracer side.