Skip to content

Commit 647e79c

Browse files
committed
ovis: addResourceLocation - assert pre-condition
1 parent 3604786 commit 647e79c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/ovis/src/ovis.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,7 @@ class WindowSceneImpl : public WindowScene
939939

940940
CV_EXPORTS_W void addResourceLocation(const String& path)
941941
{
942+
CV_Assert(!_app && "must be called before the first createWindow");
942943
_extraResourceLocations.insert(Ogre::StringUtil::normalizeFilePath(path, false));
943944
}
944945

0 commit comments

Comments
 (0)