mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Performance fixes.
This commit is contained in:
parent
5d08ada224
commit
0fd1ee0380
8 changed files with 35 additions and 36 deletions
|
@ -213,7 +213,7 @@ public:
|
|||
|
||||
// Try to use local texture instead if asked to
|
||||
if(prefer_local){
|
||||
std::string path = getTexturePath(name.c_str());
|
||||
std::string path = getTexturePath(name);
|
||||
if(path != ""){
|
||||
video::IImage *img2 = driver->createImageFromFile(path.c_str());
|
||||
if(img2){
|
||||
|
@ -245,7 +245,7 @@ public:
|
|||
return n->second;
|
||||
}
|
||||
video::IVideoDriver* driver = device->getVideoDriver();
|
||||
std::string path = getTexturePath(name.c_str());
|
||||
std::string path = getTexturePath(name);
|
||||
if(path == ""){
|
||||
infostream<<"SourceImageCache::getOrLoad(): No path found for \""
|
||||
<<name<<"\""<<std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue