From 48c6d3d89ad8ef25723962706fb81ef792bc34e6 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Tue, 12 Oct 2010 16:21:38 +0200 Subject: [PATCH] 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 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); -- 2.39.5