Fixed cull callback usage to ensure that the lazy updating of the browser image functions automatically.

This commit is contained in:
Robert Osfield
2008-12-09 14:07:59 +00:00
parent c8190d9c54
commit 9a554f7eec
3 changed files with 13 additions and 4 deletions

View File

@@ -93,7 +93,10 @@ bool Browser::assign(BrowserImage* browserImage, const GeometryHints& hints)
texture,
osg::StateAttribute::ON);
pictureQuad->setEventCallback(new osgViewer::InteractiveImageHandler(_browserImage.get()));
osg::ref_ptr<osgViewer::InteractiveImageHandler> handler = new osgViewer::InteractiveImageHandler(_browserImage.get());
pictureQuad->setEventCallback(handler.get());
pictureQuad->setCullCallback(handler.get());
addDrawable(pictureQuad);