Fix nogui build, and fix a minor issue with the GFX config dialogs when backends are changed.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7042 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2011-02-02 17:09:39 +00:00
parent 5a800b765a
commit 9a975705bf
3 changed files with 8 additions and 6 deletions

View File

@ -163,6 +163,7 @@ void VideoBackend::ShowConfig(void *_hParent)
diag->ShowModal();
diag->Destroy();
g_Config.backend_info.Adapters.clear();
DX11::D3D::UnloadDXGI();
DX11::D3D::UnloadD3D();
#endif

View File

@ -145,6 +145,7 @@ void VideoBackend::ShowConfig(void* parent)
diag->ShowModal();
diag->Destroy();
g_Config.backend_info.Adapters.clear();
DX9::D3D::Shutdown();
#endif
}

View File

@ -195,9 +195,9 @@ void VideoBackend::Video_Prepare()
g_renderer = new Renderer;
s_efbAccessRequested = FALSE;
s_FifoShuttingDown = FALSE;
s_swapRequested = FALSE;
s_efbAccessRequested = false;
s_FifoShuttingDown = false;
s_swapRequested = false;
CommandProcessor::Init();
PixelEngine::Init();
@ -229,9 +229,9 @@ void VideoBackend::Shutdown()
{
s_PluginInitialized = false;
s_efbAccessRequested = FALSE;
s_FifoShuttingDown = FALSE;
s_swapRequested = FALSE;
s_efbAccessRequested = false;
s_FifoShuttingDown = false;
s_swapRequested = false;
DLCache::Shutdown();
Fifo_Shutdown();
OGL::PostProcessing::Shutdown();