Skip to content
Snippets Groups Projects
Commit ccf3985b authored by sapier's avatar sapier
Browse files

Fix inventory items blinking on item preloading

parent 5f1f1151
No related branches found
No related tags found
No related merge requests found
......@@ -894,9 +894,7 @@ video::ITexture* TextureSource::generateTextureFromMesh(
params.light_radius);
// Render scene
driver->beginScene(true, true, video::SColor(0,0,0,0));
smgr->drawAll();
driver->endScene();
// Drop scene manager
smgr->drop();
......@@ -976,7 +974,7 @@ video::IImage* TextureSource::generateImage(const std::string &name)
std::string last_part_of_name = name.substr(last_separator_pos + 1);
/*
/*
If this name is enclosed in parentheses, generate it
and blit it onto the base 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