Changeset 54167 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.m
- Timestamp:
- Feb 12, 2015 12:20:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.m
r53946 r54167 1 /* $Id$ */ 1 2 /** @file 2 3 * VirtualBox OpenGL Cocoa Window System Helper Implementation. … … 22 23 23 24 #include <iprt/thread.h> 25 #include <iprt/assert.h> 24 26 25 27 /* Debug macros */ … … 629 631 NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init]; 630 632 631 #if 1632 // @todo galitsyn: NSOpenGLPFAWindow was deprecated starting from OSX 10.9.633 633 // Consider to remove it and check if it's harmless. 634 634 NSOpenGLPixelFormatAttribute attribs[] = 635 635 { 636 NSOpenGLPFAWindow, 636 NSOpenGLPFAOpenGLProfile, (NSOpenGLPixelFormatAttribute)0, 637 //NSOpenGLPFAWindow, - obsolete/deprecated, try work without it... 638 NSOpenGLPFAAccelerated, 637 639 NSOpenGLPFADoubleBuffer, 638 NSOpenGLPFAAccelerated,639 640 NSOpenGLPFAColorSize, (NSOpenGLPixelFormatAttribute)24, 640 641 NSOpenGLPFAAlphaSize, (NSOpenGLPixelFormatAttribute)8, … … 642 643 0 643 644 }; 644 #else 645 NSOpenGLPixelFormatAttribute attribs[] = 646 { 647 NSOpenGLPFADoubleBuffer, 648 NSOpenGLPFAAccelerated, 649 NSOpenGLPFAColorSize, (NSOpenGLPixelFormatAttribute)24, 650 NSOpenGLPFADepthSize, 24, 651 NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core, 652 0 653 }; 654 #endif 645 attribs[1] = fOtherProfile ? NSOpenGLProfileVersion3_2Core : NSOpenGLProfileVersionLegacy; 655 646 656 647 /* Choose a pixel format */ 657 648 pFmt = [[NSOpenGLPixelFormat alloc] initWithAttributes:attribs]; 658 659 649 if (pFmt) 660 650 { 661 651 *ppCtx = [[VMSVGA3DOpenGLContext alloc] initWithFormat:pFmt shareContext:pShareCtx]; 662 652 DEBUG_MSG(("New context %p\n", (void *)*ppCtx)); 653 } 654 else 655 { 656 AssertFailed(); 657 *ppCtx = NULL; 663 658 } 664 659 … … 765 760 DEBUG_FUNC_LEAVE(); 766 761 } 762
Note:
See TracChangeset
for help on using the changeset viewer.