0 Members and 1 Guest are viewing this topic.
In the meantime, you can just callCode: [Select]sprite.SetImage(sf::Image());before you set it with the new image, and it will clear the old subrect settings along with everything else from the old image.
sprite.SetImage(sf::Image());
sf::Image img( 32, 32, sf::Color( 255, 255, 255 ) );sf::Sprite spr( img );img.Create( 64, 64, sf::Color( 255, 0, 0 ) );spr.SetSubRect( sf::IntRect( 0, 0, 64, 64 ) );