Cleaned up opengl resources.