Hi,
I'm not sure about this one, because I know that textures are stored into GPU memory.
so if I write
sf::texture text1
{
sf::texture text2;
text2.create ......
text1 = text2;
}
sf::sprite sprite1(text1);
is it ok for sprite1 ?
does the texture::operator= really duplicate textures in GPU memory ?
And what about the return of RenderTexture::GetTexture(), if I use it once the render texture is destroyed ? My tests show s that it seems to work, but I wonder if it is intended/safe or just a memory shadow ?