fix loadTexture to use locateResource()
This commit is contained in:
parent
0c361d3d5a
commit
9c2f883b31
@ -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 ********/
|
||||
|
Loading…
x
Reference in New Issue
Block a user