Jogamp
NPE bug
authorCarsten Weisse <cwei@bytonic.de>
Mon, 11 Dec 2006 22:57:56 +0000 (22:57 +0000)
committerCarsten Weisse <cwei@bytonic.de>
Mon, 11 Dec 2006 22:57:56 +0000 (22:57 +0000)
src/jake2/render/opengl/Jsr231Driver.java

index b065032..9e6c3fa 100644 (file)
@@ -261,9 +261,9 @@ public abstract class Jsr231Driver extends Jsr231GL implements GLDriver {
                e.printStackTrace();
            }
            if (window != null) {
-               display.destroy();
+               if (display != null) display.destroy();
                window.dispose();
-               while (window.isDisplayable() || display.isDisplayable()) {
+               while (window.isDisplayable()) {
                    try {
                        Thread.sleep(50);
                    } catch (InterruptedException e) {
http://JogAmp.org git info: FAQ, tutorial and man pages.