- Timestamp:
- 07/13/09 10:30:20 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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
