Show
Ignore:
Timestamp:
03/31/15 21:31:34 (8 hours ago)
Author:
robert
Message:

Fixed crash when using a subload callback, where the _images array is empty by _images[0] was still being accessed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgviewerFOX/FOX_OSG.cpp

    r12292 r13130  
    4949                getState()->setGraphicsContext(this); 
    5050 
    51                 if (_traits.valid() && _traits->sharedContext) 
     51                if (_traits.valid() && _traits->sharedContext.valid()) 
    5252                { 
    5353                        getState()->setContextID( _traits->sharedContext->getState()->getContextID() );