foreach (sf::Shader *shader, globalShaders) {And this error
front.clear();
sf::Sprite sprite(back.getTexture());
front.draw(sprite, shader);
front.display();
sf::RenderTexture temp = front;
front = back;
back = temp;
}
C:\SFML\include\SFML\System\NonCopyable.hpp:67: error: 'sf::NonCopyable::NonCopyable(const sf::NonCopyable&)' is privatethe problem disappears if you comment out the line
NonCopyable(const NonCopyable&);
^
//sf::RenderTexture temp = front;Please answer - what is the problem?
//front = back;
//back = temp;