Provide a little more descriptive error message if TextureBuilder fails
This commit is contained in:
parent
7bdb530440
commit
48c6d3d89a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user