--- old/src/java.desktop/macosx/native/libawt_lwawt/java2d/opengl/CGLGraphicsConfig.m 2019-09-26 11:29:04.000000000 +0530 +++ new/src/java.desktop/macosx/native/libawt_lwawt/java2d/opengl/CGLGraphicsConfig.m 2019-09-26 11:29:04.000000000 +0530 @@ -183,9 +183,29 @@ sharedPixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs]; if (sharedPixelFormat == nil) { - J2dRlsTraceLn(J2D_TRACE_ERROR, "CGLGraphicsConfig_getCGLConfigInfo: shared NSOpenGLPixelFormat is NULL"); - [argValue addObject: [NSNumber numberWithLong: 0L]]; - return; + 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 =