Handling JOGL2 issues on Linux

This commit is contained in:
codeanticode
2011-03-28 08:23:09 +00:00
parent 6ff12996c5
commit 62e5517744
@@ -6652,8 +6652,15 @@ public class PGraphicsOpenGL2 extends PGraphics {
// is called with its argument set to false.
GLProfile.initSingleton(false);
} else {
PApplet.println("Initializing JOGL2");
GLProfile.initSingleton(true);
if (PApplet.platform == LINUX) {
// Special case for Linux, since the multithreading issues described for
// example here:
// http://forum.jogamp.org/QtJambi-JOGL-Ubuntu-Lucid-td909554.html
// have not been solved yet (at least for stable release b32 of JOGL2).
GLProfile.initSingleton(false);
} else {
GLProfile.initSingleton(true);
}
}
ogl = this;