public void doDisposeCanvas() {
            if (OS != Platform.LINUX) {
                platformCanvas.dispose();
            }
        }
Frees up the drawing surface (only on Windows and MacOSX).
jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglCanvas.java