removes OpenGL stuff in the main