From Yuzhong Shen, fix to the image dimensions passed to allocImage in Image::copySubImage

This commit is contained in:
Robert Osfield
2004-10-18 14:46:57 +00:00
parent 6e55d48352
commit 4c8e48c9e7

View File

@@ -638,7 +638,7 @@ void Image::copySubImage(int s_offset,int t_offset,int r_offset,osg::Image* sour
if (!_data)
{
notify(INFO)<<"allocating image"<<endl;
allocateImage(s_offset+source->r(),t_offset+source->t(),r_offset+source->t(),
allocateImage(s_offset+source->s(),t_offset+source->t(),r_offset+source->r(),
source->getPixelFormat(),source->getDataType(),
source->getPacking());
}