Show
Ignore:
Timestamp:
11/20/14 18:37:52 (5 hours ago)
Author:
robert
Message:

From Claus Steuer, "XCode 6, IOs 8.1 SDK Compile fix : There are some undefined texture formats when compiling osg for IOs 8.1 with XCode 6 and OpenGLES2 enabled."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/PixelBufferWin32.cpp

    r13041 r13130  
    464464        getState()->setGraphicsContext( this ); 
    465465 
    466         if (_traits.valid() && _traits->sharedContext ) 
     466        if (_traits.valid() && _traits->sharedContext.valid() ) 
    467467        { 
    468468            getState()->setContextID( _traits->sharedContext->getState()->getContextID() ); 
     
    659659    if (!_initialized) return false; 
    660660 
    661     if ( _traits->sharedContext ) 
    662     { 
    663         GraphicsHandleWin32* graphicsHandleWin32 = dynamic_cast<GraphicsHandleWin32*>(_traits->sharedContext); 
     661    if ( _traits->sharedContext.valid() ) 
     662    { 
     663        GraphicsHandleWin32* graphicsHandleWin32 = dynamic_cast<GraphicsHandleWin32*>(_traits->sharedContext.get()); 
    664664        if (graphicsHandleWin32) 
    665665        {