From Marcin Prus, "I don't know if you seen my second reply to your information about merging my Image and dds plugin changes. I found one problem in your latest submit. In ReaderWriterDDS::ComputeImageSizeInBytes pixelFormat and pixelType are not passed into osg::Image::computeImageSizeInBytes.
It's return osg::Image::computeImageSizeInBytes(width, height, depth, packing, slice_packing, image_packing); but I think it should be return osg::Image::computeImageSizeInBytes(width, height, depth, pixelFormat, pixelType, packing, slice_packing, image_packing);"
This commit is contained in:
parent
a6e57026b2
commit
eb556797e2
@ -408,7 +408,7 @@ static unsigned int ComputeImageSizeInBytes( int width, int height, int depth,
|
||||
if( height < 1 ) height = 1;
|
||||
if( depth < 1 ) depth = 1;
|
||||
|
||||
return osg::Image::computeImageSizeInBytes(width, height, depth, packing, slice_packing, image_packing);
|
||||
return osg::Image::computeImageSizeInBytes(width, height, depth, pixelFormat, pixelType, packing, slice_packing, image_packing);
|
||||
}
|
||||
|
||||
osg::Image* ReadDDSFile(std::istream& _istream, bool flipDDSRead)
|
||||
|
Loading…
Reference in New Issue
Block a user