Show
Ignore:
Timestamp:
02/21/10 14:47:32 (7 months ago)
Author:
trichards
Message:

Added a lot more debugging statements in an effort to track down an initialization bug. Final bug was fixed by calling setActive().
Also implemented pumpSystemMessages() in ZOgre.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/branches/0185_GEN_PHYSICS_REFACTOR_2/ZOgre/src/RenderingService.cpp

    r3409 r3438  
    4747 
    4848    // TODO Where should this go? 
    49  
     49    std::cout << "OGRE: m_root.restoreConfig()" << std::endl; 
    5050    if (m_root.restoreConfig()) 
    5151    { 
     
    5353        std::cout << "Rendering configuration loaded from file 'ogre.cfg'.  Delete it to show dialog at startup." << std::endl; 
    5454        m_root.initialise(false); 
     55        Ogre::ResourceGroupManager::getSingleton().addResourceLocation("./materials/textures", "FileSystem", "General", false); 
    5556        return; 
    5657    } 
    5758 
    5859    // there was no valid ogre.cfg file to read from, so let's show the dialog 
     60    std::cout << "OGRE: m_root.showConfigDialog()" << std::endl; 
    5961    if (m_root.showConfigDialog()) 
    6062    { 
    6163        std::cout << "Rendering configuration loaded from on-screen dialog." << std::endl; 
    6264        m_root.initialise(false); 
     65        Ogre::ResourceGroupManager::getSingleton().addResourceLocation("./materials/textures", "FileSystem", "General", false); 
    6366        return; 
    6467    }