Skip to content
Permalink
Browse files

fix inventory image texture leak

  • Loading branch information
sapier authored and kwolekr committed Apr 8, 2013
1 parent 98182f6 commit abe74ea5ea820403450725ee0ddcc44b07cbe098
Showing with 3 additions and 0 deletions.
  1. +3 −0 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)

0 comments on commit abe74ea

Please sign in to comment.