From 489d7dfc3c910a0afdef298200305587ce2e392b Mon Sep 17 00:00:00 2001 From: hrydgard Date: Mon, 12 Oct 2009 19:12:09 +0000 Subject: [PATCH] SW GFX plugin: Make dualcore mode work better, and make it exit more cleanly. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4412 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoSoftware/Src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/main.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/main.cpp index e4620cc605..b6ad7e4887 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/main.cpp @@ -159,13 +159,16 @@ void Video_EnterLoop() while (fifoStateRun) { - if (!CommandProcessor::RunBuffer()) + g_VideoInitialize.pPeekMessages(); + if (!CommandProcessor::RunBuffer()) { Common::SleepCurrentThread(1); + } } } void Video_ExitLoop() { + fifoStateRun = false; } void Video_AddMessage(const char* pstr, u32 milliseconds)