fix loadTexture to use locateResource()

This commit is contained in:
Josh Holtrop 2011-05-25 16:17:25 -04:00
parent 0c361d3d5a
commit 9c2f883b31

View File

@ -1348,7 +1348,8 @@ bool Engine::loadWFObjFile(const char *fname, WFObj::Buffer & buff)
GLuint Engine::loadTexture(const char *fname)
{
return m_textureCache.load(fname);
string path = locateResource(fname);
return m_textureCache.load(path.c_str());
}
/******** Engine::PickedObject functions ********/