forked from mirror/openmw-tes3mp
removed some redundant code
This commit is contained in:
parent
17a5c22c8f
commit
e7ab3544ac
2 changed files with 2 additions and 7 deletions
|
@ -79,11 +79,7 @@ bool GraphicsPage::setupOgre()
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
#if defined(ENABLE_PLUGIN_GL) || defined(ENABLE_PLUGIN_Direct3D9)
|
|
||||||
mOgre = new Ogre::Root("", "", "./launcherOgre.log");
|
mOgre = new Ogre::Root("", "", "./launcherOgre.log");
|
||||||
#else
|
|
||||||
mOgre = new Ogre::Root("", "", "./launcherOgre.log");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
catch(Ogre::Exception &ex)
|
catch(Ogre::Exception &ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -88,11 +88,10 @@ void OgreRenderer::configure(const std::string &logPath,
|
||||||
// Disable logging
|
// Disable logging
|
||||||
log->setDebugOutputEnabled(false);
|
log->setDebugOutputEnabled(false);
|
||||||
|
|
||||||
|
mRoot = new Root("", "", "");
|
||||||
|
|
||||||
#if defined(ENABLE_PLUGIN_GL) || defined(ENABLE_PLUGIN_Direct3D9) || defined(ENABLE_PLUGIN_CgProgramManager) || defined(ENABLE_PLUGIN_OctreeSceneManager) || defined(ENABLE_PLUGIN_ParticleFX)
|
#if defined(ENABLE_PLUGIN_GL) || defined(ENABLE_PLUGIN_Direct3D9) || defined(ENABLE_PLUGIN_CgProgramManager) || defined(ENABLE_PLUGIN_OctreeSceneManager) || defined(ENABLE_PLUGIN_ParticleFX)
|
||||||
mRoot = new Root("", "", "");
|
|
||||||
loadPlugins();
|
loadPlugins();
|
||||||
#else
|
|
||||||
mRoot = new Root("", "", "");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::string pluginDir;
|
std::string pluginDir;
|
||||||
|
|
Loading…
Reference in a new issue