Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemCocoa.mm
| Context not available. | |||||
| * Never explicitly delete the context, use #disposeContext() instead. | * Never explicitly delete the context, use #disposeContext() instead. | ||||
| * \return The new context (or 0 if creation failed). | * \return The new context (or 0 if creation failed). | ||||
| */ | */ | ||||
| GHOST_IContext *GHOST_SystemCocoa::createOffscreenContext() | GHOST_IContext *GHOST_SystemCocoa::createOffscreenContext( | ||||
| GHOST_PlatformSupportCallbackPtr platform_support_callback) | |||||
| { | { | ||||
| GHOST_Context *context = new GHOST_ContextCGL(false, NULL, NULL, NULL); | GHOST_Context *context = new GHOST_ContextCGL(false, NULL, NULL, NULL); | ||||
| if (context->initializeDrawingContext()) | if (context->initializeDrawingContext()) | ||||
| Context not available. | |||||
| // Check open windows if some changes are not saved | // Check open windows if some changes are not saved | ||||
| if (m_windowManager->getAnyModifiedState()) { | if (m_windowManager->getAnyModifiedState()) { | ||||
| @autoreleasepool { | @autoreleasepool | ||||
| { | |||||
| NSAlert *alert = [[NSAlert alloc] init]; | NSAlert *alert = [[NSAlert alloc] init]; | ||||
| NSString *title = [NSString stringWithFormat:@"Opening %@", [filepath lastPathComponent]]; | NSString *title = [NSString stringWithFormat:@"Opening %@", [filepath lastPathComponent]]; | ||||
| NSString *text = @"Current document has not been saved.\nDo you really want to proceed?"; | NSString *text = @"Current document has not been saved.\nDo you really want to proceed?"; | ||||
| Context not available. | |||||