mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
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:
parent
83dc3bf210
commit
198e29be07
@ -393,6 +393,8 @@ void EmuThread()
|
|||||||
// ENTER THE VIDEO THREAD LOOP
|
// ENTER THE VIDEO THREAD LOOP
|
||||||
if (_CoreParameter.bCPUThread)
|
if (_CoreParameter.bCPUThread)
|
||||||
{
|
{
|
||||||
|
g_video_backend->Video_Prepare();
|
||||||
|
|
||||||
// This thread, after creating the EmuWindow, spawns a CPU
|
// This thread, after creating the EmuWindow, spawns a CPU
|
||||||
// thread, and then takes over and becomes the video thread
|
// thread, and then takes over and becomes the video thread
|
||||||
cpuThread = std::thread(CpuThread);
|
cpuThread = std::thread(CpuThread);
|
||||||
@ -402,7 +404,6 @@ void EmuThread()
|
|||||||
Host_UpdateDisasmDialog();
|
Host_UpdateDisasmDialog();
|
||||||
Host_UpdateMainFrame();
|
Host_UpdateMainFrame();
|
||||||
|
|
||||||
g_video_backend->Video_Prepare();
|
|
||||||
g_video_backend->Video_EnterLoop();
|
g_video_backend->Video_EnterLoop();
|
||||||
}
|
}
|
||||||
else // SingleCore mode
|
else // SingleCore mode
|
||||||
|
@ -91,6 +91,8 @@ private:
|
|||||||
class NetPlayUI
|
class NetPlayUI
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
virtual ~NetPlayUI() {};
|
||||||
|
|
||||||
virtual void BootGame(const std::string& filename) = 0;
|
virtual void BootGame(const std::string& filename) = 0;
|
||||||
virtual void StopGame() = 0;
|
virtual void StopGame() = 0;
|
||||||
|
|
||||||
|
@ -217,4 +217,4 @@ void RunGpu()
|
|||||||
fifo.CPReadWriteDistance -= 32;
|
fifo.CPReadWriteDistance -= 32;
|
||||||
}
|
}
|
||||||
CommandProcessor::SetCpStatus();
|
CommandProcessor::SetCpStatus();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user