Changeset 10456
- Timestamp:
- 07/13/09 10:30:20 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 2 modified
-
include/osgViewer/api/Cocoa/GraphicsWindowCocoa (modified) (1 diff)
-
src/osgViewer/GraphicsWindowCocoa.mm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgViewer/api/Cocoa/GraphicsWindowCocoa
r10208 r10456 184 184 185 185 186 bool _closeRequested, _checkForEvents,_ownsWindow; 187 MouseCursor _currentCursor; 188 GraphicsWindowCocoaWindow* _window; 189 GraphicsWindowCocoaGLView* _view; 190 NSOpenGLContext* _context; 186 bool _closeRequested, _checkForEvents,_ownsWindow; 187 MouseCursor _currentCursor; 188 GraphicsWindowCocoaWindow* _window; 189 GraphicsWindowCocoaGLView* _view; 190 NSOpenGLContext* _context; 191 bool _updateContext; 191 192 }; 192 193 -
OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowCocoa.mm
r10417 r10456 858 858 _context = NULL; 859 859 _window = NULL; 860 _updateContext = false; 860 861 _valid = _initialized = true; 861 862 } … … 1066 1067 bool GraphicsWindowCocoa:: makeCurrentImplementation() 1067 1068 { 1069 if (_updateContext) 1070 { 1071 [_context update]; 1072 _updateContext = false; 1073 } 1074 1068 1075 [_context makeCurrentContext]; 1069 1076 return true; … … 1206 1213 GraphicsContext::resizedImplementation(x, y, width, height); 1207 1214 1208 NSAutoreleasePool* localPool = [[NSAutoreleasePool alloc] init]; 1209 1210 if (_context) 1211 [_context update]; 1215 _updateContext = true; 1216 1212 1217 MenubarController::instance()->update(); 1213 1218 getEventQueue()->windowResize(x,y,width, height, getEventQueue()->getTime()); 1214 [localPool release];1215 1219 } 1216 1220
