From 50b9ab454131cd9e8218e96f6c29a49d8193dc1d Mon Sep 17 00:00:00 2001 From: hdcmeta Date: Sun, 20 Dec 2015 16:34:28 -0800 Subject: [PATCH] Set g_vertex_manager to nullptr on DX11 backend shutdown.. OGL backend already does this --- Source/Core/VideoBackends/D3D/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/VideoBackends/D3D/main.cpp b/Source/Core/VideoBackends/D3D/main.cpp index bc6043a0b3..8d2aa59f0f 100644 --- a/Source/Core/VideoBackends/D3D/main.cpp +++ b/Source/Core/VideoBackends/D3D/main.cpp @@ -231,6 +231,8 @@ void VideoBackend::Shutdown() delete g_renderer; g_renderer = nullptr; g_texture_cache = nullptr; + g_vertex_manager = nullptr; + g_perf_query = nullptr; } }