Refactored the mutex usage in osgText and freetype plugin to prevent multi-thread crash
This commit is contained in:
@@ -37,12 +37,6 @@ static OpenThreads::ReentrantMutex s_Font3DFileMutex;
|
||||
namespace osgText
|
||||
{
|
||||
|
||||
Font::FontMutex* Font3D::getSerializeFontCallsMutex()
|
||||
{
|
||||
static OpenThreads::Mutex s_serializeFontCallsMutex;
|
||||
return &s_serializeFontCallsMutex;
|
||||
}
|
||||
|
||||
std::string findFont3DFile(const std::string& str)
|
||||
{
|
||||
// try looking in OSGFILEPATH etc first for fonts.
|
||||
|
||||
Reference in New Issue
Block a user