Fixed initializing OpenGL in GraphicVisualizer window when closing and reopening the window.