summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2010-08-23 16:16:41 -0600
committerXiaohong Bao <bao@lindenlab.com>2010-08-23 16:16:41 -0600
commitb064285da360b8f68bcc58a9e1a072a018080e34 (patch)
tree9c7e851770c910c876a055fe2d44e7469afd120f /indra/newview
parent17553add7c13c4dbed678ef01cb25174722b9bd8 (diff)
fix for EXT-8730: crash at llrender/llimagegl.cpp(157) : error ERROR: checkTexSize: wrong texture size and discard level: width: 512 Height: 512 Current Level:
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lldynamictexture.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/lldynamictexture.cpp b/indra/newview/lldynamictexture.cpp
index 48b07bcf51..a460a4f618 100644
--- a/indra/newview/lldynamictexture.cpp
+++ b/indra/newview/lldynamictexture.cpp
@@ -167,10 +167,14 @@ void LLViewerDynamicTexture::postRender(BOOL success)
{
generateGLTexture() ;
}
- if(!mGLTexturep->getHasGLTexture())
+ else if(!mGLTexturep->getHasGLTexture())
{
generateGLTexture() ;
}
+ else if(mGLTexturep->getDiscardLevel() != 0)//do not know how it happens, but regenerate one if it does.
+ {
+ generateGLTexture() ;
+ }
if(gGLManager.mDebugGPU)
{