Fix incorrect log file name for launcherOgre.log

This commit is contained in:
scrawl 2013-12-03 15:56:00 +01:00
parent 8f4ffe4ddc
commit 3a82f8c193
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ namespace OgreInit
{ {
// Set up logging first // Set up logging first
new Ogre::LogManager; new Ogre::LogManager;
Ogre::Log *log = Ogre::LogManager::getSingleton().createLog(logPath + std::string("Ogre.log")); Ogre::Log *log = Ogre::LogManager::getSingleton().createLog(logPath);
// Disable logging to cout/cerr // Disable logging to cout/cerr
log->setDebugOutputEnabled(false); log->setDebugOutputEnabled(false);

View file

@ -50,7 +50,7 @@ void OgreRenderer::configure(const std::string &logPath,
const std::string& rttMode const std::string& rttMode
) )
{ {
mRoot = mOgreInit.init(logPath); mRoot = mOgreInit.init(logPath + "/ogre.log");
RenderSystem* rs = mRoot->getRenderSystemByName(renderSystem); RenderSystem* rs = mRoot->getRenderSystemByName(renderSystem);
if (rs == 0) if (rs == 0)