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

ovis: addResourceLocation - assert pre-condition

parent 3604786e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -939,6 +939,7 @@ public:

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));
}