opengl init and double buffers