Changeset 13130 for OpenSceneGraph/trunk/src/osgQt/GraphicsWindowQt.cpp
- Timestamp:
- 05/22/13 17:48:42 (15 hours ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgQt/GraphicsWindowQt.cpp
r13041 r13130 383 383 // shareWidget 384 384 if ( !shareWidget ) { 385 GraphicsWindowQt* sharedContextQt = dynamic_cast<GraphicsWindowQt*>(_traits->sharedContext );385 GraphicsWindowQt* sharedContextQt = dynamic_cast<GraphicsWindowQt*>(_traits->sharedContext.get()); 386 386 if ( sharedContextQt ) 387 387 shareWidget = sharedContextQt->getGLWidget(); … … 423 423 424 424 // initialize contextID 425 if ( _traits.valid() && _traits->sharedContext )425 if ( _traits.valid() && _traits->sharedContext.valid() ) 426 426 { 427 427 getState()->setContextID( _traits->sharedContext->getState()->getContextID() );
