Call Video_Prepare() before starting the CPU thread.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7194 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2011-02-18 23:52:14 +00:00
parent 83dc3bf210
commit 198e29be07
3 changed files with 5 additions and 2 deletions

View File

@ -393,6 +393,8 @@ void EmuThread()
// ENTER THE VIDEO THREAD LOOP
if (_CoreParameter.bCPUThread)
{
g_video_backend->Video_Prepare();
// This thread, after creating the EmuWindow, spawns a CPU
// thread, and then takes over and becomes the video thread
cpuThread = std::thread(CpuThread);
@ -402,7 +404,6 @@ void EmuThread()
Host_UpdateDisasmDialog();
Host_UpdateMainFrame();
g_video_backend->Video_Prepare();
g_video_backend->Video_EnterLoop();
}
else // SingleCore mode

View File

@ -91,6 +91,8 @@ private:
class NetPlayUI
{
public:
virtual ~NetPlayUI() {};
virtual void BootGame(const std::string& filename) = 0;
virtual void StopGame() = 0;

View File

@ -217,4 +217,4 @@ void RunGpu()
fifo.CPReadWriteDistance -= 32;
}
CommandProcessor::SetCpStatus();
}
}