ovis: addResourceLocation - assert pre-condition

pull/2358/head
Pavel Rojtberg 6 years ago
parent 3604786e6b
commit 647e79cfcc
  1. 1
      modules/ovis/src/ovis.cpp

@ -939,6 +939,7 @@ public:
CV_EXPORTS_W void addResourceLocation(const String& path) CV_EXPORTS_W void addResourceLocation(const String& path)
{ {
CV_Assert(!_app && "must be called before the first createWindow");
_extraResourceLocations.insert(Ogre::StringUtil::normalizeFilePath(path, false)); _extraResourceLocations.insert(Ogre::StringUtil::normalizeFilePath(path, false));
} }

Loading…
Cancel
Save