Hi again.
How do I properly copy one texture to another?
More exact, how do I copy RenderTexture's texture into an ordinary texture? Right now I have something like this:
sf::RenderTexture renderTexture;
renderTexture.create(characterSize.x,characterSize.y);
renderTexture.clear(sf::Color::Transparent);
sf::Texture spriteTexture;
sf::Sprite sprite;
spriteTexture.loadFromFile("Data/Graphics/BodyBack.png");
sprite.setTexture(spriteTexture);
renderTexture.draw(sprite);
renderTexture.display();
tex=renderTexture.getTexture();
where "tex" is a reference to a texture I want to copy to.