diff options
-rw-r--r-- | src/tile.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tile.cpp b/src/tile.cpp index 80db32adb..3bfb4bb88 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -1661,6 +1661,9 @@ bool generate_image(std::string part_of_name, video::IImage *& baseimg, video::IImage *image = driver->createImage(rtt, v2s32(0,0), dim); assert(image); + //cleanup texture + driver->removeTexture(rtt); + baseimg = driver->createImage(video::ECF_A8R8G8B8, dim); if(image) |