diff --git a/src/SFML/Graphics/Texture.cpp b/src/SFML/Graphics/Texture.cpp index 9e4cdbca..b7a80d33 100644 --- a/src/SFML/Graphics/Texture.cpp +++ b/src/SFML/Graphics/Texture.cpp @@ -61,7 +61,8 @@ myTexture (0), myIsSmooth (copy.myIsSmooth), myPixelsFlipped(false) { - LoadFromImage(copy.CopyToImage()); + if (copy.myTexture) + LoadFromImage(copy.CopyToImage()); }