Fixed Shape::setTextureRect not working when called before setTexture