fix loadTexture to use locateResource()

This commit is contained in:
Josh Holtrop committed 2011-05-25 16:17:25 -04:00
1 parent 0c361d3d5a
commit 9c2f883b31
1 file changed
+2 -1
+2 -1
View File
@@ -1348,7 +1348,8 @@ bool Engine::loadWFObjFile(const char *fname, WFObj::Buffer & buff)
GLuint Engine::loadTexture(const char *fname) 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 ********/ /******** Engine::PickedObject functions ********/