Show
Ignore:
Timestamp:
11/26/14 21:40:57 (5 hours ago)
Author:
robert
Message:

From Jason Beverage, "It looks like the Callback header got accidentally removed from the CMakeLists.txt in the submission yesterday for the geometry instancing example."

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() );