Vulkan: Stop dumping frames on shutdown if left enabled

This commit is contained in:
Stenzek 2016-10-05 22:03:43 +10:00
parent c422fb7e82
commit 400ba3c7e5
1 changed files with 9 additions and 0 deletions

View File

@ -65,6 +65,15 @@ Renderer::Renderer(std::unique_ptr<SwapChain> swap_chain) : m_swap_chain(std::mo
Renderer::~Renderer()
{
#if defined(HAVE_LIBAV) || defined(_WIN32)
// Stop frame dumping if it was left enabled at shutdown time.
if (bAVIDumping)
{
AVIDump::Stop();
bAVIDumping = false;
}
#endif
g_Config.bRunning = false;
UpdateActiveConfig();
DestroyScreenshotResources();