From da54bd1427964117208c2ce444d6bb7f93eea559 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Thu, 10 Feb 2011 05:21:30 +0000 Subject: [PATCH] Removed GLProfile.initSingleton() from JOGL2 initialization to avoid crashes in Linux --- .../opengl2/src/processing/opengl2/PGraphicsOpenGL2.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/java/libraries/opengl2/src/processing/opengl2/PGraphicsOpenGL2.java b/java/libraries/opengl2/src/processing/opengl2/PGraphicsOpenGL2.java index e29312cf5..e3788efda 100644 --- a/java/libraries/opengl2/src/processing/opengl2/PGraphicsOpenGL2.java +++ b/java/libraries/opengl2/src/processing/opengl2/PGraphicsOpenGL2.java @@ -6457,7 +6457,12 @@ public class PGraphicsOpenGL2 extends PGraphics { // INITIALIZATION ROUTINES protected void initPrimary() { - GLProfile.initSingleton(true); + // Calling this one leads to crash from native code in Linux 64 bits: + //GLProfile.initSingleton(true); + // Some more info that could be relevant is here: + // http://jogamp.762907.n3.nabble.com/QtJambi-JOGL-Ubuntu-Lucid-td909554.html + // Some more about threading, X11 and AWT: + // http://jogamp.762907.n3.nabble.com/SIGSEGV-when-closing-JOGL-applications-td895912.html // TODO: when running as applet use: // GLProfile.initSingleton(false);