Verified Commit b75b0f3e authored by Michaël KUGLER's avatar Michaël KUGLER Committed by Flavien BRIDAULT-LOUCHEZ
Browse files

fix(viz): crash in Ogre resources loading

The list containing the Ogre resources paths was not allocated properly.
parent 42da2e74
......@@ -74,7 +74,11 @@ void Utils::loadResources()
// Ensure we always load the resources of this library first, since other may reuse our programs or shaders
std::list<std::string> moduleWithResourcesNames;
std::copy(s_moduleWithResourcesNames.begin(), s_moduleWithResourcesNames.end(), moduleWithResourcesNames.begin());
std::copy(
s_moduleWithResourcesNames.begin(),
s_moduleWithResourcesNames.end(),
std::back_inserter(moduleWithResourcesNames)
);
moduleWithResourcesNames.push_front("sight::viz::scene3d");
for(const auto& moduleName : moduleWithResourcesNames)
......
Supports Markdown
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