Changeset 13130 for OpenSceneGraph/trunk/src/osgViewer/PixelBufferX11.cpp
- Timestamp:
- 05/22/13 17:48:42 (7 hours ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgViewer/PixelBufferX11.cpp
r13041 r13130 44 44 getState()->setGraphicsContext(this); 45 45 46 if (_traits.valid() && _traits->sharedContext )46 if (_traits.valid() && _traits->sharedContext.valid()) 47 47 { 48 48 getState()->setContextID( _traits->sharedContext->getState()->getContextID() ); … … 217 217 218 218 // get any shared GLX contexts 219 GraphicsHandleX11* graphicsHandleX11 = dynamic_cast<GraphicsHandleX11*>(_traits->sharedContext );219 GraphicsHandleX11* graphicsHandleX11 = dynamic_cast<GraphicsHandleX11*>(_traits->sharedContext.get()); 220 220 Context sharedContext = graphicsHandleX11 ? graphicsHandleX11->getContext() : 0; 221 221
