Fixed VSYNC issue for OSX host.
Merge pull request #621 from clementfarabet/master

Fixed VSYNC issue on OSX.