You need to sign in or sign up before continuing.
Commit 9baff2f0 authored by hybrid's avatar hybrid

Fix texture loading.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2186 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 87a66e3f
...@@ -2069,6 +2069,7 @@ video::ITexture* CLWOMeshFileLoader::loadTexture(const core::stringc& file) ...@@ -2069,6 +2069,7 @@ video::ITexture* CLWOMeshFileLoader::loadTexture(const core::stringc& file)
if (FileSystem->existFile(strippedName)) if (FileSystem->existFile(strippedName))
return driver->getTexture(strippedName); return driver->getTexture(strippedName);
core::stringc newpath = FileSystem->getFileDir(File->getFileName()); core::stringc newpath = FileSystem->getFileDir(File->getFileName());
newpath.append("/");
newpath.append(strippedName); newpath.append(strippedName);
if (FileSystem->existFile(newpath)) if (FileSystem->existFile(newpath))
return driver->getTexture(newpath); return driver->getTexture(newpath);
......
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