]> git.mxchange.org Git - simgear.git/commitdiff
Use the original filename for the compressed image message.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 15 Jan 2012 12:07:35 +0000 (13:07 +0100)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 15 Jan 2012 12:07:35 +0000 (13:07 +0100)
simgear/scene/model/ModelRegistry.cxx

index 2788eadd8a8ec32da5d948c81b18390313d30302..54b98a0d621a577d1a8057307ebfd7d93a87270b 100644 (file)
@@ -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.");