Did you allocate storage for your osg::Image* before using it (i.e. osg::Image* img = new osg::Image)? That doesn't make sense why it would only work on a osg::ref_ptr.
---------------------------------------- Marlin Rowley Software Engineer, Staff Missiles and Fire Control 972-603-1931 (office) 214-926-0622 (mobile) [email protected] -----Original Message----- From: osg-users <[email protected]> On Behalf Of Rômulo Cerqueira Sent: Thursday, September 27, 2018 3:34 PM To: [email protected] Subject: EXTERNAL: Re: [osg-users] Read Image from RTT Solved the problem! Perhaps readImageFromCurentTexture() works only with osg::ref_ptr<osg::Image> instead of osg::Image*. ... Thank you! Cheers, Rômulo ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=74986#74986 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

