Show
Ignore:
Timestamp:
12/10/09 18:52:40 (3 years ago)
Author:
robert
Message:

From Stephan Huber, "attached you'll find the missing GraphicsHandleCocoa?-implementation."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowCocoa.mm

    r10456 r10887  
    972972    NSOpenGLContext* sharedContext = NULL; 
    973973     
    974     GraphicsWindowCocoa* graphicsWindowCocoa = dynamic_cast<GraphicsWindowCocoa*>(_traits->sharedContext); 
    975     if (graphicsWindowCocoa)  
    976     { 
    977         sharedContext = graphicsWindowCocoa->getContext(); 
    978     } 
    979     else 
    980     { 
    981         PixelBufferCocoa* pixelbuffer = dynamic_cast<PixelBufferCocoa*>(_traits->sharedContext); 
    982         if (pixelbuffer) { 
    983             sharedContext = pixelbuffer->getContext(); 
    984         } 
     974    GraphicsHandleCocoa* graphicsHandleCocoa = dynamic_cast<GraphicsHandleCocoa*>(_traits->sharedContext); 
     975    if (graphicsHandleCocoa)  
     976    { 
     977        sharedContext = graphicsHandleCocoa->getNSOpenGLContext(); 
    985978    } 
    986979