Use the original filename for the compressed image message.

This commit is contained in:
Mathias Froehlich 2012-01-15 13:07:35 +01:00
parent 21f2e1f250
commit 7e2dc443ec

View File

@ -284,7 +284,7 @@ ModelRegistry::readImage(const string& fileName,
case GL_COMPRESSED_RED_GREEN_RGTC2_EXT: case GL_COMPRESSED_RED_GREEN_RGTC2_EXT:
case GL_COMPRESSED_SIGNED_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" << "\" contains non portable compressed textures.\n"
"Usage of these textures depend on an extension that" "Usage of these textures depend on an extension that"
" is not guaranteed to be present."); " is not guaranteed to be present.");