Fixes a GLException caused by a regression on the management of the gamma correction in the JOGL backend

experimental
Julien Gouesse 9 years ago
parent c8c0904bda
commit 2e977f6535
  1. 7
      jme3-jogl/src/main/java/com/jme3/system/jogl/JoglAbstractDisplay.java
  2. 7
      jme3-jogl/src/main/java/com/jme3/system/jogl/JoglNewtAbstractDisplay.java

@ -167,7 +167,12 @@ public abstract class JoglAbstractDisplay extends JoglContext implements GLEvent
renderer = new JoglRenderer();
renderer.setMainFrameBufferSrgb(settings.getGammaCorrection());
canvas.invoke(false, new GLRunnable() {
public boolean run(GLAutoDrawable glad) {
renderer.setMainFrameBufferSrgb(settings.getGammaCorrection());
return true;
}
});
}
protected void startGLCanvas() {

@ -146,7 +146,12 @@ public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE
renderer = new JoglRenderer();
renderer.setMainFrameBufferSrgb(settings.getGammaCorrection());
canvas.invoke(false, new GLRunnable() {
public boolean run(GLAutoDrawable glad) {
renderer.setMainFrameBufferSrgb(settings.getGammaCorrection());
return true;
}
});
}
protected void startGLCanvas() {

Loading…
Cancel
Save