From Giuseppe Donvito, "I'm using OSG 320 and I need to flush a DDS 3D texture on disk. I found a bug on DDS ReaderWriter that generates a false positive on a guard for the size check on writing operation. This is due to a wrong imageSize computation that uses img->getImageSizeInBytes() method instead of img->getTotalSizeInBytes(), that actually ignores the r() dimension, contrariwise taken into account by the function ComputeImageSizeInBytes() later.
From Giuseppe Donvito, "I'm using OSG 320 and I need to flush a DDS 3D texture on disk.
I found a bug on DDS ReaderWriter that generates a false positive on a guard for the size check on writing operation. This is due to a wrong imageSize computation that uses img->getImageSizeInBytes() method instead of img->getTotalSizeInBytes(), that actually ignores the r() dimension, contrariwise taken into account by the function ComputeImageSizeInBytes() later.

The line 1062 on file ReaderWriterDDS.cpp should be fixed with:
[code]unsigned int imageSize = img->getTotalSizeInBytes();[/code]
"


jtorresfabra/osg,jtorresfabra/osg,scrawl/osg,openscenegraph/osg,tomasthoresen/osg,marchelbling/osg,tomasthoresen/osg,scrawl/osg,openscenegraph/osg,scrawl/osg,jtorresfabra/osg,marchelbling/osg,marchelbling/osg,openscenegraph/osg,tomasthoresen/osg,jtorresfabra/osg,scrawl/osg,openscenegraph/osg,tomasthoresen/osg,marchelbling/osg,artoolkit/osg,artoolkit/osg,artoolkit/osg,artoolkit/osg