diff --git a/source/gui/CGUI.cpp b/source/gui/CGUI.cpp index 4faac9b153..fb7123fc2e 100755 --- a/source/gui/CGUI.cpp +++ b/source/gui/CGUI.cpp @@ -499,7 +499,6 @@ void CGUI::AddObject(IGUIObject* pObject) // Loaded GUI::RecurseObject(0, pObject, &IGUIObject::HandleMessage, SGUIMessage(GUIM_LOAD)); - GUI::RecurseObject(0, pObject, &IGUIObject::ScriptEvent, "load"); } catch (PS_RESULT e) { diff --git a/source/main.cpp b/source/main.cpp index 3c22a664bc..7cc7b186fa 100755 --- a/source/main.cpp +++ b/source/main.cpp @@ -1132,6 +1132,10 @@ TIMER(init_after_InitRenderer); in_add_handler(hotkeyInputHandler); // <- Leave this one until after all the others. } +#ifndef NO_GUI + g_GUI.SendEventToAll("load"); +#endif + MICROLOG(L"render blank"); // render everything to a blank frame to force renderer to load everything RenderNoCull();