Skip to content
Snippets Groups Projects
Commit 428c762a authored by Xiaohong Bao's avatar Xiaohong Bao
Browse files

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

parent 24a0ec92
No related branches found
No related tags found
No related merge requests found
...@@ -1424,7 +1424,7 @@ void LLImageGL::deleteDeadTextures() ...@@ -1424,7 +1424,7 @@ void LLImageGL::deleteDeadTextures()
{ {
LLTexUnit* tex_unit = gGL.getTexUnit(i); LLTexUnit* tex_unit = gGL.getTexUnit(i);
if (tex_unit->getCurrTexture() == tex) if (tex_unit && tex_unit->getCurrTexture() == tex)
{ {
tex_unit->unbind(tex_unit->getCurrType()); tex_unit->unbind(tex_unit->getCurrType());
stop_glerror(); stop_glerror();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment