diff options
author | Sven Gothel <[email protected]> | 2023-08-13 05:14:06 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-08-13 05:14:06 +0200 |
commit | d0bb5159f986f7e05c07360c88192f1a29f89122 (patch) | |
tree | 4407919484475f300f37912eefce354839db94bd /src/jogl/classes/com/jogamp/opengl/swt | |
parent | 8cf369093538bf482fa9902f52cec75f04b7e7eb (diff) |
GraphUIDemoArgs: Issue GLProfile.initSingleton() once in static init block, ensuring JOGL is completely initialized
Noteable: On MacOS 13.1 (aarch64) UISceneDemo20 won't show the window if NEWT is initialized before JOGL core via GLProfile.initSingleton().
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/swt')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java index 257c71ee7..31dbee3af 100644 --- a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java +++ b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java @@ -343,7 +343,7 @@ public class GLCanvas extends Canvas implements GLAutoDrawable, GLSharedContextS /* NO_BACKGROUND required to avoid clearing bg in native SWT widget (we do this in the GL display) */ super(parent, style | SWT.NO_BACKGROUND); - GLProfile.initSingleton(); // ensure JOGL is completly initialized + GLProfile.initSingleton(); // ensure JOGL is completely initialized SWTAccessor.setRealized(this, true); |