| 974 | | GraphicsWindowCocoa* graphicsWindowCocoa = dynamic_cast<GraphicsWindowCocoa*>(_traits->sharedContext); |
| 975 | | if (graphicsWindowCocoa) |
| 976 | | { |
| 977 | | sharedContext = graphicsWindowCocoa->getContext(); |
| 978 | | } |
| 979 | | else |
| 980 | | { |
| 981 | | PixelBufferCocoa* pixelbuffer = dynamic_cast<PixelBufferCocoa*>(_traits->sharedContext); |
| 982 | | if (pixelbuffer) { |
| 983 | | sharedContext = pixelbuffer->getContext(); |
| 984 | | } |
| | 974 | GraphicsHandleCocoa* graphicsHandleCocoa = dynamic_cast<GraphicsHandleCocoa*>(_traits->sharedContext); |
| | 975 | if (graphicsHandleCocoa) |
| | 976 | { |
| | 977 | sharedContext = graphicsHandleCocoa->getNSOpenGLContext(); |