< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/java2d/opengl/CGLGraphicsConfig.m

Print this page

        

*** 181,194 **** }; sharedPixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs]; if (sharedPixelFormat == nil) { ! J2dRlsTraceLn(J2D_TRACE_ERROR, "CGLGraphicsConfig_getCGLConfigInfo: shared NSOpenGLPixelFormat is NULL"); [argValue addObject: [NSNumber numberWithLong: 0L]]; return; } sharedContext = [[NSOpenGLContext alloc] initWithFormat:sharedPixelFormat shareContext: NULL]; --- 181,214 ---- }; sharedPixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs]; if (sharedPixelFormat == nil) { ! J2dRlsTraceLn(J2D_TRACE_ERROR, ! "CGLGraphicsConfig_getCGLConfigInfo: shared NSOpenGLPixelFormat is NULL"); ! J2dRlsTraceLn1(J2D_TRACE_INFO, "glMask %0x\n",glMask); ! NSOpenGLPixelFormatAttribute attrs1[] = { ! NSOpenGLPFAAllowOfflineRenderers, ! NSOpenGLPFAClosestPolicy, ! NSOpenGLPFAWindow, ! NSOpenGLPFAPixelBuffer, ! NSOpenGLPFADoubleBuffer, ! NSOpenGLPFAColorSize, 32, ! NSOpenGLPFAAlphaSize, 8, ! NSOpenGLPFADepthSize, 16, ! 0 ! }; ! sharedPixelFormat = ! [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs1]; ! if (sharedPixelFormat == nil) { ! J2dRlsTraceLn(J2D_TRACE_ERROR, ! "CGLGraphicsConfig_getCGLConfigInfo: shared NSOpenGLPixelFormat is NULL "); ! [argValue addObject: [NSNumber numberWithLong: 0L]]; return; } + } sharedContext = [[NSOpenGLContext alloc] initWithFormat:sharedPixelFormat shareContext: NULL];
< prev index next >