diff --git a/simgear/scene/model/ModelRegistry.cxx b/simgear/scene/model/ModelRegistry.cxx index 2788eadd..54b98a0d 100644 --- a/simgear/scene/model/ModelRegistry.cxx +++ b/simgear/scene/model/ModelRegistry.cxx @@ -284,7 +284,7 @@ ModelRegistry::readImage(const string& fileName, case GL_COMPRESSED_RED_GREEN_RGTC2_EXT: case GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: - SG_LOG(SG_IO, SG_ALERT, "Image \"" << res.getImage()->getFileName() + SG_LOG(SG_IO, SG_ALERT, "Image \"" << fileName << "\" contains non portable compressed textures.\n" "Usage of these textures depend on an extension that" " is not guaranteed to be present.");