SFML community forums
Help => Graphics => Topic started by: Tank on August 24, 2012, 11:55:47 am
-
When one calls sf::Sprite::setTexture( ..., false ) the first time (i.e. first time a texture is set), the subrect will be reset, even when that's not intended.
This can lead to problems when one's preparing the subrect before actually setting the texture the first time.
-
Do you suggest to reset it only if it hasn't been set before calling setTexture?
-
Correct. If I set the subrect, I probably want to keep it.
-
Sounds reasonable. Done.
-
Thanks!