Hi,
I was trying to use a RenderTexture as a drawing utility method and then binding the texture on a concurrent OpenGL context I'm getting from my application. It was working... until I got rid of a former RenderWindow attribute I was using previously in this class (but no longer using in the code itself).
To my surprise, all of a sudden the program stopped working and the texture was no longer rendered in my OpenGL context.
I've reverted and I've investigated on it.
It turns out that for some reasons there's a global initialization process which is called in sf::Window once and as long as this hasn't been triggered the rest won't just work.
So although I'm not using it I've got an object sf::RenderWindow in my class that ensures this global initialization is done once.
Am I right, and if yes is this intended?
Is there any workaround to work with RenderTexture objects in SFML without having to instantiate a sf::RenderWindow once at least?
Cheers all!