[osg-users] Deleting osg::Image that is shallow copied

Pierre-Jean Petitprez pierre-jean.petitprez at inria.fr
Tue Aug 16 02:27:20 PDT 2016


In my application I have two osg::Images, the second one is a shallow copy of the first one thanks to the copy constructor.
Is it safe to delete the first image and keep only the second one, or should I use deep copy instead? 
My tests showed me that the data is still reachable but when looking at the image destructor it clearly deallocates the data.

Thanks for enlightening me,


Read this topic online here:

More information about the osg-users mailing list