fix for SH-1498: crash at LLImageGL::deleteDeadTextures() line 1429

Xiaohong Bao 2011-08-19 13:27:51 -06:00
parent c2e9244d00
commit 89f751c938
1 changed files with 1 additions and 1 deletions

View File

@ -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();