Prototype gl loop.