From e5d51da1b390b1bf9f3afd54338975d910337310 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 18 Feb 2015 10:23:14 +0000 Subject: [PATCH] From Sebastian Messerschmidt, "Attached you find a version of the ReaderWriterDDS with info outputs set to OSG_INFO instead of OSG_NOTICE. The old version spams the console for each loaded DDS file." git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14701 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgPlugins/dds/ReaderWriterDDS.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osgPlugins/dds/ReaderWriterDDS.cpp b/src/osgPlugins/dds/ReaderWriterDDS.cpp index eb2f9217b..0cc659fe9 100644 --- a/src/osgPlugins/dds/ReaderWriterDDS.cpp +++ b/src/osgPlugins/dds/ReaderWriterDDS.cpp @@ -982,7 +982,7 @@ osg::Image* ReadDDSFile(std::istream& _istream, bool flipDDSRead) } } - OSG_NOTICE<<"ReadDDS, dataType = 0x"<setOrigin(osg::Image::BOTTOM_LEFT); if (!isDXTC || ((s>4 && s%4==0 && t>4 && t%4==0) || s<4)) // Flip may crash (access violation) or fail for non %4 dimensions (except for s<4). Tested with revision trunk 2013-02-22. { - OSG_NOTICE<<"Flipping dds on load"<flipVertical(); } else @@ -1064,7 +1064,7 @@ bool WriteDDSFile(const osg::Image *img, std::ostream& fout, bool autoFlipDDSWri unsigned int pixelSize = osg::Image::computePixelSizeInBits(pixelFormat, dataType); unsigned int imageSize = img->getTotalSizeInBytes(); - OSG_NOTICE<<"WriteDDS, dataType = 0x"< source; if (autoFlipDDSWrite && img->getOrigin() == osg::Image::BOTTOM_LEFT) { - OSG_NOTICE<<"Flipping dds image on write"< copy( new osg::Image(*img,osg::CopyOp::DEEP_COPY_ALL) ); const int s(copy->s());