Browse Source

tests: cleanup GraphicsEngine to prevent shutdown freeze on windows

This occurs with the multithreaded render pipeline.  It's not an issue when using ShowBase because ShowBase also explicitly calls this during shutdown.
rdb 8 years ago
parent
commit
f37c070c7c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/display/conftest.py

+ 3 - 0
tests/display/conftest.py

@@ -20,6 +20,9 @@ def graphics_engine():
     engine = GraphicsEngine.get_global_ptr()
     yield engine
 
+    # This causes GraphicsEngine to also terminate the render threads.
+    engine.remove_all_windows()
+
 
 @pytest.fixture
 def window(graphics_pipe, graphics_engine):