- Timestamp:
- 03/25/10 15:14:46 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowCocoa.mm
r11207 r11289 858 858 _context = NULL; 859 859 _window = NULL; 860 _pixelformat = NULL; 861 860 862 _updateContext = false; 861 863 _valid = _initialized = true; … … 978 980 } 979 981 980 NSOpenGLPixelFormat*pixelformat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attr ];981 _context = [[NSOpenGLContext alloc] initWithFormat: pixelformat shareContext: sharedContext];982 _pixelformat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attr ]; 983 _context = [[NSOpenGLContext alloc] initWithFormat: _pixelformat shareContext: sharedContext]; 982 984 983 985 if (!_context) {
