Changed: Fixed the context initialization check for the log plugin

hg/feature/sound
sfb 14 years ago
parent 2748e34f27
commit 4b38fc730b

@ -90,8 +90,12 @@ void CLogPlugin::extensionsInitialized()
void CLogPlugin::setNelContext(NLMISC::INelContext *nelContext) void CLogPlugin::setNelContext(NLMISC::INelContext *nelContext)
{ {
nlassert(!NLMISC::INelContext::isContextInitialised()); #ifdef NL_OS_WINDOWS
_LibContext = new NLMISC::CLibraryContext(*nelContext); // Ensure that a context doesn't exist yet.
// This only applies to platforms without PIC, e.g. Windows.
nlassert(!NLMISC::INelContext::isContextInitialised());
#endif // fdef NL_OS_WINDOWS^M
_LibContext = new NLMISC::CLibraryContext(*nelContext);
_displayer = new NLQT::CQtDisplayer(_ui.plainTextEdit); _displayer = new NLQT::CQtDisplayer(_ui.plainTextEdit);

Loading…
Cancel
Save