fix inventory image texture leak

master
sapier 2013-04-07 19:47:34 +02:00 committed by kwolekr
parent 98182f6097
commit abe74ea5ea
1 changed files with 3 additions and 0 deletions

View File

@ -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); video::IImage *image = driver->createImage(rtt, v2s32(0,0), dim);
assert(image); assert(image);
//cleanup texture
driver->removeTexture(rtt);
baseimg = driver->createImage(video::ECF_A8R8G8B8, dim); baseimg = driver->createImage(video::ECF_A8R8G8B8, dim);
if(image) if(image)