summaryrefslogtreecommitdiff
path: root/indra
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
commitbeb965772c97f781aac5657a014c2b43909333b7 (patch)
treeb7520e0e17f048469049d852b70c1c0354a43cc6 /indra
parentf263ee04441f5173a02974c51347f8bb3d23d29d (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')
-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)
{