Re: JOGL 2 support for Ardor3D, JMonkeyEngine 3, jzy3d and NiftyGUI
Posted by
Mr.Marbles on
Aug 28, 2015; 12:07pm
URL: https://forum.jogamp.org/JOGL-2-support-for-Ardor3D-JMonkeyEngine-3-jzy3d-and-NiftyGUI-tp1706747p4035152.html
gouessej wrote
Edit.: Just put this call in canvas.invoke(false, new GLRunnable() { public boolean run(GLAutoDrawable glad) { /*HERE*/ }}); and it will work.
I tried applying this fix to JoglNewtAbstractDisplay and now there is no canvas made visible. The app starts without exception but nothing is shown. For reference here's what the updated code looks like:
canvas.invoke(false, new GLRunnable() {
public boolean run(GLAutoDrawable glad) {
renderer.setMainFrameBufferSrgb(settings.getGammaCorrection());
return true;
}
});