fix repeated texture allocation bug

This commit is contained in:
Eduardo Bart
2012-04-24 13:18:45 -03:00
parent 7526315d12
commit 9cf40d7f53
5 changed files with 21 additions and 16 deletions

View File

@@ -36,7 +36,7 @@ OTMLDocumentPtr OTMLDocument::create()
OTMLDocumentPtr OTMLDocument::parse(const std::string& fileName)
{
std::stringstream fin;
std::string source = g_resources.checkPath(fileName);
std::string source = g_resources.resolvePath(fileName);
g_resources.loadFile(source, fin);
return parse(fin, source);
}