Set swap interval correctly in gl_init().