Asstertion error while mGui->initialise() [Solved]

mrmclovin

14-08-2008 00:43:44

I get this assertion error:

// setup mygui system
mGui = new MyGUI::Gui();
mGui->initialise(Ogre::Root::getSingletonPtr()->getAutoCreatedWindow());


Log:
----------------------------------------------------------------------------------------------------------------------------------
loging report for : 08/14/2008 01:20:03
----------------------------------------------------------------------------------------------------------------------------------

01:20:03 | General | Info | * Initialise: Gui | c:\develop\mygui_svn\myguiengine\src\mygui_gui.cpp | 43
01:20:03 | General | Info | * MyGUI version 2.2.0 | c:\develop\mygui_svn\myguiengine\src\mygui_gui.cpp | 47

Altren

14-08-2008 13:57:52

Looks like you not created Ogre RenderWindow. You should initialise Ogre and create AutoCreatedWindow before initialising MyGUI.

mrmclovin

14-08-2008 14:38:51

Appearently a viewport has to be added to the RenderWindow which I did not have. Thanks for your reply!