Show
Ignore:
Timestamp:
08/28/14 17:11:29 (17 hours ago)
Author:
robert
Message:

Improved support for controlling the ShadingModel? via the VolumeSettings? object

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgQt/GraphicsWindowQt.cpp

    r13041 r13130  
    383383        // shareWidget 
    384384        if ( !shareWidget ) { 
    385             GraphicsWindowQt* sharedContextQt = dynamic_cast<GraphicsWindowQt*>(_traits->sharedContext); 
     385            GraphicsWindowQt* sharedContextQt = dynamic_cast<GraphicsWindowQt*>(_traits->sharedContext.get()); 
    386386            if ( sharedContextQt ) 
    387387                shareWidget = sharedContextQt->getGLWidget(); 
     
    423423 
    424424    // initialize contextID 
    425     if ( _traits.valid() && _traits->sharedContext ) 
     425    if ( _traits.valid() && _traits->sharedContext.valid() ) 
    426426    { 
    427427        getState()->setContextID( _traits->sharedContext->getState()->getContextID() );