Skip to content

Commit

Permalink
PluginTest: set load path according to build config (debug vs release)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ybalrid committed Jul 17, 2018
1 parent 25d8928 commit 2d77721
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pluginTest/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ const char GL_RENDER_PLUGIN[] = "./RenderSystem_GL3Plus";
#ifdef _WIN32
#ifdef _DEBUG
const char D3D11_RENDER_PLUGIN[] = "./RenderSystem_Direct3D11_d";
const char Ogre_glTF_PluginPath[] = "./Debug/Ogre_glTF";
#else
const char D3D11_RENDER_PLUGIN[] = "./RenderSystem_Direct3D11";
const char Ogre_glTF_PluginPath[] = "./Release/Ogre_glTF";
#endif
#endif

Expand Down Expand Up @@ -100,7 +102,7 @@ int main()
#ifdef _WIN32
root->loadPlugin(D3D11_RENDER_PLUGIN);
//Append the Ogre_glTF plugin to that list
root->loadPlugin("./Debug/Ogre_glTF");
root->loadPlugin(Ogre_glTF_PluginPath);
#else
root->loadPlugin("./libOgre_glTF.so");
#endif
Expand Down

0 comments on commit 2d77721

Please sign in to comment.