diff --git a/src/osg/ImageUtils.cpp b/src/osg/ImageUtils.cpp index 6c36c9337..5feb0bb85 100644 --- a/src/osg/ImageUtils.cpp +++ b/src/osg/ImageUtils.cpp @@ -200,7 +200,7 @@ struct WriteRowOperator bool copyImage(const osg::Image* srcImage, int src_s, int src_t, int src_r, int width, int height, int depth, osg::Image* destImage, int dest_s, int dest_t, int dest_r, bool doRescale) { - if ((src_s+width) > (dest_s + destImage->s())) + if ((dest_s+width) > (destImage->s())) { OSG_NOTICE<<"copyImage("< (dest_t + destImage->t())) + if ((dest_t+height) > (destImage->t())) { OSG_NOTICE<<"copyImage("< (dest_r + destImage->r())) + if ((dest_r+depth) > (destImage->r())) { OSG_NOTICE<<"copyImage("<