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,7 +61,8 @@ myTexture (0),
myIsSmooth (copy.myIsSmooth), myIsSmooth (copy.myIsSmooth),
myPixelsFlipped(false) myPixelsFlipped(false)
{ {
LoadFromImage(copy.CopyToImage()); if (copy.myTexture)
LoadFromImage(copy.CopyToImage());
} }