some setup for openGL.