Provide a little more descriptive error message if TextureBuilder fails

This commit is contained in:
Torsten Dreyer 2010-10-12 16:21:38 +02:00
parent 7bdb530440
commit 48c6d3d89a

View File

@ -134,7 +134,7 @@ void TextureUnitBuilder::buildAttribute(Effect* effect, Pass* pass,
catch (BuilderException& ) {
SG_LOG(SG_INPUT, SG_ALERT, "No image file, "
<< "maybe the reader did not set the filename attribute, "
<< "using white on " << pass->getName());
<< "using white for type '" << type << "' on '" << pass->getName() << "', in " << prop->getPath() );
texture = StateAttributeFactory::instance()->getWhiteTexture();
}
pass->setTextureAttributeAndModes(unit, texture);