|
@@ -126,7 +126,7 @@ class Window {
|
|
}
|
|
}
|
|
|
|
|
|
public function destroy() {
|
|
public function destroy() {
|
|
- winDestroy(win, glctx);
|
|
|
|
|
|
+ try winDestroy(win, glctx) catch( e : Dynamic ) {};
|
|
win = null;
|
|
win = null;
|
|
glctx = null;
|
|
glctx = null;
|
|
windows.remove(this);
|
|
windows.remove(this);
|