Hi, What is the best way to catch openGL errors?
My scenegraph uses osg::PagedLOD nodes and in some cases it happens that GPU goes out-of-memory and I can see this message on std::cout. I would like to catch this error and adjust PagedLOD settings to have less nodes in the scene. My idea is to catch the error, change the osg::PagedLOD::setRange and clear the scene to free currently used GPU memory. How can I catch the error and free occupied memory? Can the openGL error be catched by subclassed osg::Drawable::DrawCallback to all drawables ? Thank you! Tomas ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33314#33314 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

