From 87ccfbab02907522f7ba3e6af3a2c8ea0ed59f34 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Wed, 13 Oct 2010 09:18:38 +0200 Subject: [PATCH] Restore commit 48c6d3d89ad by Torsten Dreyer: Provide a little more descriptive error message if TextureBuilder fails --- simgear/scene/material/TextureBuilder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/material/TextureBuilder.cxx b/simgear/scene/material/TextureBuilder.cxx index 61b62dfe..a694ea66 100644 --- a/simgear/scene/material/TextureBuilder.cxx +++ b/simgear/scene/material/TextureBuilder.cxx @@ -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); -- 2.39.5