From: Torsten Dreyer Date: Tue, 12 Oct 2010 14:21:38 +0000 (+0200) Subject: Provide a little more descriptive error message if TextureBuilder fails X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=48c6d3d89ad;p=simgear.git Provide a little more descriptive error message if TextureBuilder fails --- diff --git a/simgear/scene/material/TextureBuilder.cxx b/simgear/scene/material/TextureBuilder.cxx index 47565ad5..dccc47de 100644 --- a/simgear/scene/material/TextureBuilder.cxx +++ b/simgear/scene/material/TextureBuilder.cxx @@ -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);