Commit 647e79cf authored by Pavel Rojtberg's avatar Pavel Rojtberg

ovis: addResourceLocation - assert pre-condition

parent 3604786e
...@@ -939,6 +939,7 @@ public: ...@@ -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));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment