Destroy the VTRenderer before leaving fullscreen

Fixes #973
This commit is contained in:
Cameron Gutman
2023-09-11 21:07:54 -05:00
parent 2ac7176787
commit 64789ea8bc
2 changed files with 9 additions and 1 deletions
@@ -112,6 +112,10 @@ public:
if (m_DisplayLayer != nullptr) {
[m_DisplayLayer release];
}
// It appears to be necessary to run the event loop after destroying
// the AVSampleBufferDisplayLayer to avoid issue #973.
SDL_PumpEvents();
}}
static