From eb960669a5b03a1a9834622ca0ac367784c4f25c Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 3 Jun 2018 22:33:59 +0200 Subject: [PATCH] display: fix assert when window fails to open The assert is being triggered because the window is already being removed in open_windows. It does not really matter if it returns false anyway, as long as the window is removed one way or another. --- panda/src/display/graphicsEngine.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/panda/src/display/graphicsEngine.cxx b/panda/src/display/graphicsEngine.cxx index b3f931e44b..e47597872e 100644 --- a/panda/src/display/graphicsEngine.cxx +++ b/panda/src/display/graphicsEngine.cxx @@ -445,8 +445,7 @@ make_output(GraphicsPipe *pipe, } // No good; delete the window and keep trying. - bool removed = remove_window(window); - nassertr(removed, NULL); + remove_window(window); } }