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

fix for EXT-8730: crash at llrender/llimagegl.cpp(157) : error ERROR:...

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:
parent 17553add
No related branches found
No related tags found
No related merge requests found
...@@ -167,10 +167,14 @@ void LLViewerDynamicTexture::postRender(BOOL success) ...@@ -167,10 +167,14 @@ void LLViewerDynamicTexture::postRender(BOOL success)
{ {
generateGLTexture() ; generateGLTexture() ;
} }
if(!mGLTexturep->getHasGLTexture()) else if(!mGLTexturep->getHasGLTexture())
{ {
generateGLTexture() ; generateGLTexture() ;
} }
else if(mGLTexturep->getDiscardLevel() != 0)//do not know how it happens, but regenerate one if it does.
{
generateGLTexture() ;
}
if(gGLManager.mDebugGPU) if(gGLManager.mDebugGPU)
{ {
......
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