Skip to content

Commit 62f86e2

Browse files
committed
xrUICore: fix windows build
1 parent aef0032 commit 62f86e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xrUICore/XML/UITextureMaster.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ void CUITextureMaster::ParseShTexInfo(pcstr path, pcstr xml_file)
5555
/* avo: fix issue when values were not updated (silently skipped) when same key is encountered more than once. This is how std::map is designed.
5656
/* Also used more efficient C++11 std::map::emplace method instead of outdated std::pair::make_pair */
5757
/* XXX: avo: note that xxx.insert(mk_pair(v1,v2)) pattern is used extensively throughout solution so there is a good potential for other bug fixes/improvements */
58+
#ifdef LINUX
5859
static std::mutex new_texture_mutex;
5960
std::scoped_lock new_texture_lock (new_texture_mutex);
61+
#endif
6062
if (m_textures.find(id) == m_textures.end())
6163
m_textures.emplace(id, info);
6264
else

0 commit comments

Comments
 (0)