Use double buffering variable to toggle vsync
Re-create context when changing HWSURFACE or DOUBLEBUF