mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 06:08:42 +00:00
Changed: Fixed non-PIC context initialization check in OVQT example plugin.
This commit is contained in:
parent
7f1a90e176
commit
edc25fdd6f
1 changed files with 4 additions and 0 deletions
|
@ -52,7 +52,11 @@ void MyPlugin::execMessageBox()
|
|||
|
||||
void MyPlugin::setNelContext(NLMISC::INelContext *nelContext)
|
||||
{
|
||||
#ifdef NL_OS_WINDOWS
|
||||
// Ensure that a context doesn't exist yet.
|
||||
// This only applies to platforms without PIC, e.g. Windows.
|
||||
nlassert(!NLMISC::INelContext::isContextInitialised());
|
||||
#endif // NL_OS_WINDOWS
|
||||
_LibContext = new NLMISC::CLibraryContext(*nelContext);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue