Fixed sf::Texture copy constructor
This commit is contained in:
parent
d541f5f5b0
commit
1e2aca6e49
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user