summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-08-19 13:27:51 -0600
committerXiaohong Bao <bao@lindenlab.com>2011-08-19 13:27:51 -0600
commit428c762a3ea6caec277d915b8b175403cf3f52dd (patch)
tree7ef144ac38ce4cb1e9e08b38e3dca998ea9236cc /indra/llrender
parent24a0ec9286170bdcd7fd3989f223d4043c2a133d (diff)
fix for SH-1498: crash at LLImageGL::deleteDeadTextures() line 1429
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llimagegl.cpp2
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();