fix for SH-1498: crash at LLImageGL::deleteDeadTextures() line 1429
parent
c2e9244d00
commit
89f751c938
|
|
@ -1424,7 +1424,7 @@ void LLImageGL::deleteDeadTextures()
|
|||
{
|
||||
LLTexUnit* tex_unit = gGL.getTexUnit(i);
|
||||
|
||||
if (tex_unit->getCurrTexture() == tex)
|
||||
if (tex_unit && tex_unit->getCurrTexture() == tex)
|
||||
{
|
||||
tex_unit->unbind(tex_unit->getCurrType());
|
||||
stop_glerror();
|
||||
|
|
|
|||
Loading…
Reference in New Issue