mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-25 12:32:39 +00:00
Combine the two halves of video backend initialization
in Initialize() and Video_Prepare(). Video_Prepare() then becomes the entry point for associating the current thread with the rendering context, which is currently only known to be necessary for OpenGL. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7195 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
198e29be07
commit
c6c0137df4
3 changed files with 13 additions and 20 deletions
|
@ -163,10 +163,6 @@ void VideoBackend::Initialize()
|
|||
|
||||
OSD::AddMessage("Dolphin Direct3D9 Video Backend.", 5000);
|
||||
s_BackendInitialized = true;
|
||||
}
|
||||
|
||||
void VideoBackend::Video_Prepare()
|
||||
{
|
||||
// Better be safe...
|
||||
s_efbAccessRequested = FALSE;
|
||||
s_FifoShuttingDown = FALSE;
|
||||
|
@ -186,7 +182,10 @@ void VideoBackend::Video_Prepare()
|
|||
CommandProcessor::Init();
|
||||
PixelEngine::Init();
|
||||
DLCache::Init();
|
||||
}
|
||||
|
||||
void VideoBackend::Video_Prepare()
|
||||
{
|
||||
// Notify the core that the video backend is ready
|
||||
Core::Callback_CoreMessage(WM_USER_CREATE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue