Show
Ignore:
Timestamp:
04/24/14 19:26:46 (9 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/src/osgViewer/PixelBufferCocoa.mm

    r13036 r13130  
    6464    NSOpenGLContext* sharedContext = NULL; 
    6565     
    66     GraphicsHandleCocoa* graphicsHandleCocoa = dynamic_cast<GraphicsHandleCocoa*>(_traits->sharedContext); 
     66    GraphicsHandleCocoa* graphicsHandleCocoa = dynamic_cast<GraphicsHandleCocoa*>(_traits->sharedContext.get()); 
    6767    if (graphicsHandleCocoa)  
    6868    {