Login  Register

Re: Jogl/Jogamp on Java 9 no compatible graphics context

Posted by Predrag Bokšić on Jan 09, 2018; 5:02pm
URL: https://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tp4038012p4038505.html


Here you have the minimal changes... and in the next patch file there are even more changes and comments.
j3d-core/src/javax/media/j3d/JoglPipeline.java
JoglPipeline.patch
LONG_JoglPipeline.patch

@@ -6536,7 +6536,7 @@
             // Done !

             glContext.release();
-               glContext.destroy();
+               // glContext.destroy(); // JVM 9 CRASH testing
                glDrawable.setRealized(false);
        }
         else {
@@ -6803,7 +6803,7 @@
         if (GLContext.getCurrent() == context) {
             context.release();
         }
-        context.destroy();
+        // context.destroy(); // JVM 9 CRASH testing

         // assuming this is the right point at which to make this call
         joglDrawable.getGLDrawable().setRealized(false);
@@ -8628,11 +8628,11 @@
                     context.release();
                 }
             }
-            context.destroy();
+            // context.destroy(); // JVM 9 CRASH testing
             alreadyRan = true;

             glDrawable.setRealized(false);
-            nativeWindow.destroy();
+            // nativeWindow.destroy(); // JVM 9 CRASH testing
         }
     }