Skip to content

Commit

Permalink
JoglPipeline: add a quick hack to avoid a JOGL bug
Browse files Browse the repository at this point in the history
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:
* fiji/3D_Viewer#17
* fiji/3D_Viewer#18
  • Loading branch information
ctrueden committed Jun 3, 2016
1 parent d3ad709 commit 5e9c192
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/org/scijava/java3d/JoglPipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 5e9c192

Please sign in to comment.