File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ typedef xr_vector<shared_str> PSVec;
5555typedef PSVec::iterator PSIt;
5656#endif
5757
58+ #include " xrCore/xrDebug_macros.h"
59+ #pragma todo("Place at least CGameMtlLibrary in a static lib or something. It currently gets instantiated a huge amount of times.")
60+
5861struct MTL_EXPORT_API SGameMtl
5962{
6063 friend class CGameMtlLibrary ;
@@ -247,7 +250,7 @@ class MTL_EXPORT_API CGameMtlLibrary
247250
248251 GameMtlIt GetMaterialIt (LPCSTR name)
249252 {
250- auto pred = [&](const SGameMtl* mtl) { return !strcmpi (mtl->m_Name .c_str (), name); };
253+ auto pred = [&](const SGameMtl* mtl) { return !_strcmpi (mtl->m_Name .c_str (), name); };
251254 return std::find_if (materials.begin (), materials.end (), pred);
252255 }
253256 GameMtlIt GetMaterialIt (shared_str& name)
You can’t perform that action at this time.
0 commit comments