Commit 8722cc62 authored by mercury233's avatar mercury233

fix temp image didn't drop in CGUITTFont::createTextureFromChar

parent 2712ed48
......@@ -834,6 +834,7 @@ video::IImage* CGUITTFont::createTextureFromChar(const uchar32_t& ch) {
core::dimension2du glyph_size(glyph.source_rect.getSize());
video::IImage* image = Driver->createImage(format, glyph_size);
pageholder->copyTo(image, irr::core::vector2di(0, 0), glyph.source_rect);
pageholder->drop();
tex->unlock();
return image;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment