mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
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.
This commit is contained in:
parent
7ea16fd772
commit
f37c070c7c
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user