I'm trying make my classes that depend on Ogre testable and to do it I need Ogre not to render anything. I'm using Ogre 2.1 on macOS.
Code: Select all
Ogre::NULLPlugin ogre_null_plugin;
Ogre::Root ogre_root;
ogre_root.installPlugin(&ogre_null_plugin);
Ogre::RenderSystem *rs = ogre_root.getRenderSystemByName("NULL Rendering Subsystem");
ogre_root.setRenderSystem(rs);
ogre_root.initialise(false);
Ogre::SceneManager *ogre_scene_mgr = ogre_root.createSceneManager(1, 1, Ogre::INSTANCING_CULLING_SINGLETHREAD);
Any idea what I need to do?Assertion failed: (index < mTechniques.size() && "Index out of bounds."), function getTechnique, file /ogre/ogre/OgreMain/src/OgreMaterial.cpp, line 277.