[osg-users] Pass an osg::Texture2D to CUDA driver api

Philipp Meyer philipp.meyer at fh-bielefeld.de
Wed Jun 15 06:48:07 PDT 2016


Hi,

figured it out.
One needs to use


Code:
viewer->setReleaseContextAtEndOfFrameHint(false);



to prevent the context from getting released after a frame is rendered.
That way, its resources, like textures, can still be accessed after the frame completes.

Thank you!

Cheers,
Philipp

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67640#67640








More information about the osg-users mailing list