SFML community forums

Help => Graphics => Topic started by: bostonbrooks on July 08, 2018, 08:25:12 am

Title: Sprite gets mirrored?
Post by: bostonbrooks on July 08, 2018, 08:25:12 am
How come when I use sfTexture_copy everything goes as expected,
But if I create a Sprite based on the source texture and draw it to a RenderTexture that contains the destination texture, the result is a mirror image of what I was hoping for.
I can work around this by setting the y-scale of the sprite to -1 but I'd like to know why this behavior occurs in the first place.
Title: Re: Sprite gets mirrored?
Post by: G. on July 08, 2018, 09:58:43 am
You have to call display for RenderTexture like you would for a RenderWindow.
Title: Re: Sprite gets mirrored?
Post by: bostonbrooks on July 08, 2018, 11:17:01 am
I have.
Title: Re: Sprite gets mirrored?
Post by: eXpl0it3r on July 08, 2018, 02:54:02 pm
IIRC it was a bug that already got fixed on the master branch.