diff --git a/src/osg/Image.cpp b/src/osg/Image.cpp index e755cc65a..2c36d5af8 100644 --- a/src/osg/Image.cpp +++ b/src/osg/Image.cpp @@ -2147,7 +2147,7 @@ Vec4 _readColor(GLenum pixelFormat, T* data,float scale) Vec4 Image::getColor(unsigned int s,unsigned t,unsigned r) const { - if (isCompressed(_pixelFormat)) + if (isCompressed()) { if (dxtc_tool::isDXTC(_pixelFormat)) { unsigned char color[4];