fix full path bug with loading texture files for materials

This commit is contained in:
Josh Holtrop 2011-03-08 13:44:34 -05:00
parent b714c0b08f
commit d06888128c

View File

@ -587,7 +587,7 @@ void WFObj::WFMtl::renderBegin(const string & mtlname, bool doTextureInfo,
if (m_obj->m_textureLoader != NULL) if (m_obj->m_textureLoader != NULL)
{ {
FileLoader::Path path( FileLoader::Path path(
basePath(m_path.fullPath + stmts[i][1]), basePath(m_path.fullPath) + stmts[i][1],
stmts[i][1]); stmts[i][1]);
GLuint tex = m_obj->m_textureLoader->load(path, GLuint tex = m_obj->m_textureLoader->load(path,
*m_obj->m_fileLoader); *m_obj->m_fileLoader);