Add some checks to catch errors earlier
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10228 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -290,6 +290,12 @@ void Material::install(bool is_full_path)
|
||||
const std::string &full_path = is_full_path
|
||||
? m_texname
|
||||
: file_manager->getTextureFile(m_texname);
|
||||
|
||||
if (full_path.size() == 0)
|
||||
{
|
||||
fprintf(stderr, "[Material] WARNING, cannot find texture '%s'\n", m_texname.c_str());
|
||||
}
|
||||
|
||||
m_texture = irr_driver->getTexture(full_path,
|
||||
isPreMul(), isPreDiv());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user