diff options
author | Carsten Weisse <[email protected]> | 2006-12-11 22:57:56 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2006-12-11 22:57:56 +0000 |
commit | 14ac96fa474e53326818a9f4f0921b68c452ca01 (patch) | |
tree | 9c72ce5bdf604fec14e0484de1bde84cdec846f2 /src | |
parent | 8f697e3797ecdace952145312b55d474680bf364 (diff) |
NPE bug
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/render/opengl/Jsr231Driver.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jake2/render/opengl/Jsr231Driver.java b/src/jake2/render/opengl/Jsr231Driver.java index b065032..9e6c3fa 100644 --- a/src/jake2/render/opengl/Jsr231Driver.java +++ b/src/jake2/render/opengl/Jsr231Driver.java @@ -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) { |