mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix inventory items blinking on item preloading
This commit is contained in:
@@ -894,9 +894,7 @@ video::ITexture* TextureSource::generateTextureFromMesh(
|
|||||||
params.light_radius);
|
params.light_radius);
|
||||||
|
|
||||||
// Render scene
|
// Render scene
|
||||||
driver->beginScene(true, true, video::SColor(0,0,0,0));
|
|
||||||
smgr->drawAll();
|
smgr->drawAll();
|
||||||
driver->endScene();
|
|
||||||
|
|
||||||
// Drop scene manager
|
// Drop scene manager
|
||||||
smgr->drop();
|
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);
|
std::string last_part_of_name = name.substr(last_separator_pos + 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
If this name is enclosed in parentheses, generate it
|
If this name is enclosed in parentheses, generate it
|
||||||
and blit it onto the base image
|
and blit it onto the base image
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user