Skip to content
Snippets Groups Projects
Commit abe74ea5 authored by sapier's avatar sapier Committed by kwolekr
Browse files

fix inventory image texture leak

parent 98182f60
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment