diff --git a/src/osg/Image.cpp b/src/osg/Image.cpp index fef67966e..dc0c4745d 100644 --- a/src/osg/Image.cpp +++ b/src/osg/Image.cpp @@ -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"<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()); }