wilsonwing
02-04-2013 08:58:39
Hi,
It seems MyGUI with Ogre 1.8 doesn't handle the device lost event. (or the event name has changed.)
Please fix it by add following code to
MyGUI_3.2.0\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp , near line 212 :
Regards.
It seems MyGUI with Ogre 1.8 doesn't handle the device lost event. (or the event name has changed.)
Please fix it by add following code to
MyGUI_3.2.0\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp , near line 212 :
void OgreRenderManager::eventOccurred(const Ogre::String& eventName, const Ogre::NameValuePairList* parameters)
{
if (eventName == "DeviceLost")
...
// Fix monitor change event on Ogre 1.8
else if( eventName == "DeviceCreated" || eventName == "DeviceReleased" )
{
mUpdate = true;
}
}
Regards.
