From 5e9c192afa22ddecc8bacac410bee5db318ee48f Mon Sep 17 00:00:00 2001 From: Curtis Rueden Date: Fri, 3 Jun 2016 09:25:35 -0500 Subject: [PATCH] JoglPipeline: add a quick hack to avoid a JOGL bug Thanks to Philip Jordan; see discussion at: http://forum.jogamp.org/Java-3D-crash-or-flickering-tp4035074p4036787.html This temporary workaround may avoid certain problems in the 3D_Viewer: * https://github.com/fiji/3D_Viewer/issues/17 * https://github.com/fiji/3D_Viewer/issues/18 --- src/org/scijava/java3d/JoglPipeline.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/scijava/java3d/JoglPipeline.java b/src/org/scijava/java3d/JoglPipeline.java index 419530dc..9c6bf502 100644 --- a/src/org/scijava/java3d/JoglPipeline.java +++ b/src/org/scijava/java3d/JoglPipeline.java @@ -129,7 +129,10 @@ void initialize(Pipeline.Type pipelineType) { // Java3D maintains strict control over which threads perform OpenGL work Threading.disableSingleThreading(); - profile = GLProfile.getMaxFixedFunc(true); + // HACK: See: + // http://forum.jogamp.org/Java-3D-crash-or-flickering-tp4035074p4036787.html + profile = GLProfile.getGL2ES1(); + //profile = GLProfile.getMaxFixedFunc(true); // TODO: finish this with any other needed initialization }