Added use of ref_ptr<>
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14870 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
95a507299b
commit
05841d7c00
@ -1112,7 +1112,7 @@ void CompositeViewer::eventTraversal()
|
||||
|
||||
// create a frame event for the new frame.
|
||||
{
|
||||
osgGA::GUIEventAdapter* event = view->getEventQueue()->frame( getFrameStamp()->getReferenceTime() );
|
||||
osg::ref_ptr<osgGA::GUIEventAdapter> event = view->getEventQueue()->frame( getFrameStamp()->getReferenceTime() );
|
||||
|
||||
if (!_previousEvent || _previousEvent->getNumPointerData()<2)
|
||||
{
|
||||
|
@ -987,7 +987,7 @@ void Viewer::eventTraversal()
|
||||
|
||||
// create a frame event for the new frame.
|
||||
{
|
||||
osgGA::GUIEventAdapter* event = _eventQueue->frame( getFrameStamp()->getReferenceTime() );
|
||||
osg::ref_ptr<osgGA::GUIEventAdapter> event = _eventQueue->frame( getFrameStamp()->getReferenceTime() );
|
||||
|
||||
if (!eventState || eventState->getNumPointerData()<2)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user