Show
Ignore:
Timestamp:
04/24/14 19:26:46 (8 hours ago)
Author:
robert
Message:

From Farshid Lashkari, "I've attached a small fix to the Collada loader which prevents a null pointer access in some cases."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgViewer/api/X11/GraphicsWindowX11

    r12125 r13130  
    6060                getState()->setGraphicsContext(this); 
    6161 
    62                 if (_traits.valid() && _traits->sharedContext) 
     62                if (_traits.valid() && _traits->sharedContext.valid()) 
    6363                { 
    6464                    getState()->setContextID( _traits->sharedContext->getState()->getContextID() );