hack to make glretrace work with CGLSetSurface