]> git.mxchange.org Git - simgear.git/commitdiff
Provide a little more descriptive error message if TextureBuilder fails
authorTorsten Dreyer <Torsten@t3r.de>
Tue, 12 Oct 2010 14:21:38 +0000 (16:21 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Tue, 12 Oct 2010 14:21:38 +0000 (16:21 +0200)
simgear/scene/material/TextureBuilder.cxx

index 47565ad548e463baa514d70814ce5eccf4e4edb9..dccc47dea18273bf5b21fa1c1bdc7f02fb0ce784 100644 (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);