From 2e398de9471ae2bef2ad5387a54f4b841168f056 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Mon, 11 Dec 2006 15:54:41 +0000 Subject: destroy window in the main thread --- src/jake2/render/opengl/Jsr231Driver.java | 10 +++++----- 1 file 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(); + } } /** -- cgit v1.2.3