<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hello,<br><br></div>the following code block is creating an image from a buffer I own. This does not allocate a new buffer, but assumes my buffer will not be deallocated. How do I create a new, independent osg::Image copying data from my buffer to an internal array?<br><br></div>osg::Image img = osg::image();<br></div>img->setImage(<br></div>  width,<br></div>  height, <br>  1, <br></div>  internalTextureFormat(),<br></div>  type(),<br></div>  MyDataBuffer(),<br></div>  osg::Image::NO_DELETE);<br><br><br></div>