We are interested in knowing how and when you use the software pipe of JavaFX on Mac. Can you please submit a bug report and provide those information?

https://wiki.openjdk.java.net/display/OpenJFX/Submitting+a+Bug+Report

Thanks,
- Chien

On 4/14/2016 11:41 AM, Ali Ebrahimi wrote:
On macosx vm:

We running with software pipeline user get CGLCreateContext error: 10002 in
glass native code so this error causes empty window without any controls in
app window.

The following patch fixes this issue and I can run Ensemple8 application
successfully.

diff -r 3f15f2e59063
modules/graphics/src/main/native-glass/mac/GlassView3D.m
--- a/modules/graphics/src/main/native-glass/mac/GlassView3D.m Wed Apr 13
12:36:43 2016 -0700
+++ b/modules/graphics/src/main/native-glass/mac/GlassView3D.m Thu Apr 14
23:08:16 2016 +0430
@@ -93,9 +93,18 @@
          };
          GLint npix = 0;
          CGLError err = CGLChoosePixelFormat(attributes, &pix, &npix);
-        if (err != kCGLNoError)
+        if (pix == NULL)
          {
-            NSLog(@"CGLChoosePixelFormat error: %d", err);
+            const CGLPixelFormatAttribute attributes2[] =
+            {
+                kCGLPFAAllowOfflineRenderers,
+                (CGLPixelFormatAttribute)0
+            };
+            err = CGLChoosePixelFormat(attributes2, &pix, &npix);
+            if (err != kCGLNoError)
+            {
+                NSLog(@"CGLChoosePixelFormat error: %d", err);
+            }
          }
      }
      return pix;

Reply via email to