mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-10 01:59:02 +00:00
Fix for the hang after close caused by my previews perf queries commit.
Sorry for that. fix issue 6205
This commit is contained in:
parent
e11f5630b1
commit
d032f3fd79
4 changed files with 24 additions and 12 deletions
|
@ -88,7 +88,7 @@ void SetupDeviceObjects()
|
|||
VertexShaderCache::Init();
|
||||
PixelShaderCache::Init();
|
||||
g_vertex_manager->CreateDeviceObjects();
|
||||
g_perf_query = new PerfQuery;
|
||||
((PerfQuery*)g_perf_query)->CreateDeviceObjects();
|
||||
// Texture cache will recreate themselves over time.
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@ void TeardownDeviceObjects()
|
|||
D3D::dev->SetRenderTarget(0, D3D::GetBackBufferSurface());
|
||||
D3D::dev->SetDepthStencilSurface(D3D::GetBackBufferDepthSurface());
|
||||
delete g_framebuffer_manager;
|
||||
delete g_perf_query;
|
||||
((PerfQuery*)g_perf_query)->DestroyDeviceObjects();
|
||||
D3D::font.Shutdown();
|
||||
TextureCache::Invalidate();
|
||||
VertexLoaderManager::Shutdown();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue