Browse Source

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.
rdb 7 years ago
parent
commit
eb960669a5
1 changed files with 1 additions and 2 deletions
  1. 1 2
      panda/src/display/graphicsEngine.cxx

+ 1 - 2
panda/src/display/graphicsEngine.cxx

@@ -445,8 +445,7 @@ make_output(GraphicsPipe *pipe,
       }
       }
 
 
       // No good; delete the window and keep trying.
       // No good; delete the window and keep trying.
-      bool removed = remove_window(window);
-      nassertr(removed, NULL);
+      remove_window(window);
     }
     }
   }
   }