Reorder and add DOUBLEBUF.
Add GL_SWAP_CONTROL.