[sprite] don't set default rect before the user provided one

This commit is contained in:
vfjpl 2020-12-08 16:34:51 +01:00 committed by Lukas Dürrenberger
parent 808adedf13
commit aa81cae6cf

View File

@ -46,7 +46,7 @@ Sprite::Sprite(const Texture& texture) :
m_texture (NULL),
m_textureRect()
{
setTexture(texture);
setTexture(texture, true);
}
@ -55,8 +55,8 @@ Sprite::Sprite(const Texture& texture, const IntRect& rectangle) :
m_texture (NULL),
m_textureRect()
{
setTexture(texture);
setTextureRect(rectangle);
setTexture(texture, false);
}