mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-06 19:01:21 +03:00
bug #348: works again on OS X
This commit is contained in:
parent
2d080ce4ef
commit
94ce95c679
3 changed files with 44 additions and 35 deletions
|
@ -116,11 +116,15 @@ bool GraphicsPage::setupOgre()
|
|||
}
|
||||
|
||||
std::string glPlugin = std::string(pluginDir) + "/RenderSystem_GL" + OGRE_PLUGIN_DEBUG_SUFFIX;
|
||||
if (boost::filesystem::exists(glPlugin + ".so") || boost::filesystem::exists(glPlugin + ".dll"))
|
||||
if (boost::filesystem::exists(glPlugin + ".so") ||
|
||||
boost::filesystem::exists(glPlugin + ".dll") ||
|
||||
boost::filesystem::exists(glPlugin + ".dylib"))
|
||||
mOgre->loadPlugin (glPlugin);
|
||||
|
||||
std::string dxPlugin = std::string(pluginDir) + "/RenderSystem_Direct3D9" + OGRE_PLUGIN_DEBUG_SUFFIX;
|
||||
if (boost::filesystem::exists(dxPlugin + ".so") || boost::filesystem::exists(dxPlugin + ".dll"))
|
||||
if (boost::filesystem::exists(dxPlugin + ".so") ||
|
||||
boost::filesystem::exists(dxPlugin + ".dll") ||
|
||||
boost::filesystem::exists(dxPlugin + ".dylib"))
|
||||
mOgre->loadPlugin (dxPlugin);
|
||||
|
||||
#ifdef ENABLE_PLUGIN_GL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue