Set up the ability to restart an OpenGL context.