Fixes a GLException caused by a regression on the management of the gamma correction in the JOGL backend
This commit is contained in:
parent
c8c0904bda
commit
2e977f6535
@ -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…
x
Reference in New Issue
Block a user