OpenSim crash fixes, thx to Henri and Zauber
This commit is contained in:
@@ -267,8 +267,16 @@ void LLFontGL::destroyAllGL()
|
||||
{
|
||||
if (sFontRegistry)
|
||||
{
|
||||
if (LLFont::sOpenGLcrashOnRestart)
|
||||
{
|
||||
// This will leak memory but will prevent a crash...
|
||||
sFontRegistry = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
sFontRegistry->destroyGL();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LLFontGL::destroyGL()
|
||||
|
||||
Reference in New Issue
Block a user