summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2006-12-11 15:54:41 +0000
committerCarsten Weisse <[email protected]>2006-12-11 15:54:41 +0000
commit2e398de9471ae2bef2ad5387a54f4b841168f056 (patch)
tree5c4807fc149b98b7752a05b2666ad80099ce11ea
parent90e811b1d3293c28fd6027e9e42e4079a1a84396 (diff)
destroy window in the main thread
-rw-r--r--src/jake2/render/opengl/Jsr231Driver.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jake2/render/opengl/Jsr231Driver.java b/src/jake2/render/opengl/Jsr231Driver.java
index 949faa6..076b6fd 100644
--- a/src/jake2/render/opengl/Jsr231Driver.java
+++ b/src/jake2/render/opengl/Jsr231Driver.java
@@ -2,7 +2,7 @@
* JoglCommon.java
* Copyright (C) 2004
*
- * $Id: Jsr231Driver.java,v 1.15 2006-12-11 15:43:44 cawe Exp $
+ * $Id: Jsr231Driver.java,v 1.16 2006-12-11 15:54:41 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -241,15 +241,15 @@ public abstract class Jsr231Driver extends Jsr231GL implements GLDriver {
e.printStackTrace();
}
}
- if (window != null) {
- display.destroy();
- window.dispose();
- }
}
});
} catch (Exception e) {
e.printStackTrace();
}
+ if (window != null) {
+ display.destroy();
+ window.dispose();
+ }
}
/**