diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-10-12 19:12:09 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-10-12 19:12:09 +0000 |
| commit | 489d7dfc3c910a0afdef298200305587ce2e392b (patch) | |
| tree | da75b184e3ae5d0db424637aecea06fb986b98c6 /Source/Plugins/Plugin_VideoSoftware/Src/main.cpp | |
| parent | a887a475e3a6700f7d0cfbc6d6df5c634a953351 (diff) | |
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
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/main.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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)
|
