diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index a0bd0d465..97bda1a13 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -476,7 +476,9 @@ osg::Image* createTexture3D(ImageList& imageList, ProcessRow& processRow, pixelFormat==GL_LUMINANCE || pixelFormat==GL_LUMINANCE_ALPHA || pixelFormat==GL_RGB || - pixelFormat==GL_RGBA) + pixelFormat==GL_RGBA || + pixelFormat==GL_BGR || + pixelFormat==GL_BGRA) { max_s = osg::maximum(image->s(), max_s); max_t = osg::maximum(image->t(), max_t); @@ -485,7 +487,7 @@ osg::Image* createTexture3D(ImageList& imageList, ProcessRow& processRow, } else { - osg::notify(osg::NOTICE)<<"Image "<getFileName()<<" has unsuitable pixel format"<< std::hex<< pixelFormat << std::dec << std::endl; + osg::notify(osg::NOTICE)<<"Image "<getFileName()<<" has unsuitable pixel format 0x"<< std::hex<< pixelFormat << std::dec << std::endl; } } @@ -1242,6 +1244,7 @@ int main( int argc, char **argv ) if(image) { + OSG_NOTICE<<"Read osg::Image FileName::"<getFileName()<<", pixelFormat=0x"<getPixelFormat()<getFileName()<<", pixelFormat=0x"<getPixelFormat()<