diff options
author | sapier <Sapier at GMX dot net> | 2013-04-07 19:47:34 +0200 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-04-07 22:54:00 -0400 |
commit | abe74ea5ea820403450725ee0ddcc44b07cbe098 (patch) | |
tree | 39239a51fa7d403620820b96e017a3b3157ac4ff /src | |
parent | 98182f6097ec0568545f5612f6ae1354e110333d (diff) | |
download | minetest-abe74ea5ea820403450725ee0ddcc44b07cbe098.tar.gz minetest-abe74ea5ea820403450725ee0ddcc44b07cbe098.tar.bz2 minetest-abe74ea5ea820403450725ee0ddcc44b07cbe098.zip |
fix inventory image texture leak
Diffstat (limited to 'src')
-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) |