Added OpenGL state management to two sensitive calls in the SFML renderer