Code from pull request #401 was not used because some methods used don't exist on 10.5 which is still supported by SFML 2.1.