From 4c8e48c9e73664c9942b9d8b95a6fa1b11559382 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 18 Oct 2004 14:46:57 +0000 Subject: [PATCH] From Yuzhong Shen, fix to the image dimensions passed to allocImage in Image::copySubImage --- src/osg/Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }