diff --git a/runtime/Core/GeometryProcessing.h b/runtime/Core/GeometryProcessing.h index 3e2ee9c4b..bad1eafe0 100644 --- a/runtime/Core/GeometryProcessing.h +++ b/runtime/Core/GeometryProcessing.h @@ -395,8 +395,6 @@ namespace spartan::geometry_processing static void optimize(std::vector& vertices, std::vector& indices) { - register_meshoptimizer(); - size_t vertex_count = vertices.size(); size_t index_count = indices.size(); diff --git a/runtime/Core/Settings.cpp b/runtime/Core/Settings.cpp index 997a33910..3657f36ce 100644 --- a/runtime/Core/Settings.cpp +++ b/runtime/Core/Settings.cpp @@ -174,7 +174,16 @@ namespace spartan void Settings::RegisterThirdPartyLib(const string& name, const string& version, const string& url) { lock_guard lock(mutex_register); + m_third_party_libs.emplace_back(name, version, url); + + // maintain alphabetical order + sort(m_third_party_libs.begin(), m_third_party_libs.end(), + [](const third_party_lib& a, const third_party_lib& b) + { + return a.name < b.name; + } + ); } const vector& Settings::GetThirdPartyLibs()