diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2011-08-19 13:27:51 -0600 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2011-08-19 13:27:51 -0600 |
commit | 428c762a3ea6caec277d915b8b175403cf3f52dd (patch) | |
tree | 7ef144ac38ce4cb1e9e08b38e3dca998ea9236cc | |
parent | 24a0ec9286170bdcd7fd3989f223d4043c2a133d (diff) |
fix for SH-1498: crash at LLImageGL::deleteDeadTextures() line 1429
-rw-r--r-- | indra/llrender/llimagegl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp index 4892a292cf..7188b0fa44 100644 --- a/indra/llrender/llimagegl.cpp +++ b/indra/llrender/llimagegl.cpp @@ -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(); |