Fixed sf::Texture copy constructor

This commit is contained in:
Laurent Gomila 2011-08-19 18:28:21 +02:00
parent d541f5f5b0
commit 1e2aca6e49

View File

@ -61,6 +61,7 @@ myTexture (0),
myIsSmooth (copy.myIsSmooth), myIsSmooth (copy.myIsSmooth),
myPixelsFlipped(false) myPixelsFlipped(false)
{ {
if (copy.myTexture)
LoadFromImage(copy.CopyToImage()); LoadFromImage(copy.CopyToImage());
} }