Skip to content

Commit

Permalink
one more try for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Aug 15, 2024
1 parent 63733d0 commit 26425b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ogre/src/OgreRenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ using namespace rendering;
// \todo(iche033) Find a proper way to unload the library without causing a
// crash.
typedef void (*DLL_START_PLUGIN)(void);
void *glPluginHandle;
DYNLIB_HANDLE glPluginHandle;

void loadGLPlugin(const std::string &_pluginName)
{
glPluginHandle = dlopen(_pluginName.c_str(), RTLD_LAZY | RTLD_LOCAL);
DLL_START_PLUGIN pFunc = (DLL_START_PLUGIN)dlsym(
glPluginHandle = DYNLIB_LOAD(_pluginName.c_str());
DLL_START_PLUGIN pFunc = (DLL_START_PLUGIN)DYNLIB_GETSYM(
glPluginHandle, "dllStartPlugin");
pFunc();
return;
Expand Down

0 comments on commit 26425b8

Please sign in to comment.