@Override
    public void setAutoFlushFrames(boolean enabled){
        this.autoFlush = enabled;
    }
De-initialize in the OpenGL thread.
jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglAbstractDisplay.java