I have a problem with my game: it's flickering( i don't know is the perfect word for my problem). I'm using Thor for animate my player and whenever I move the tiles are moved:
But when I don't move the player everything is normal:
This happen only when a draw everything to a sf::RenderTexture and after to the window:
m_scene.clear();
m_scene.draw(...)
m_scene.display();
sf::Sprite spriteScene(m_scene.getTexture());
window.draw(spriteScene);
When I draw directly to the window everything works fine.
I can't post the code, but trying to create an example code( until now I have not managed to remake the bug).
If you have some thoughts about how to resolve or from where it come the bug, please post.
I'm using the last version of SFML from GitHub.