Restore commit 48c6d3d89a
by Torsten Dreyer: Provide a little more descriptive error message if TextureBuilder fails
This commit is contained in:
parent
97f39282ef
commit
87ccfbab02
@ -135,7 +135,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