fix for EXT-4164: llrender/llimagegl.cpp(1111): ASSERT(mCurrentDiscardLevel>=0)

master
Xiaohong Bao 2010-01-11 16:23:14 -08:00
parent 2a65ae2249
commit 2aa67af38e
1 changed files with 2 additions and 2 deletions

View File

@ -1149,14 +1149,14 @@ void LLBumpImageList::onSourceLoaded( BOOL success, LLViewerTexture *src_vi, LLI
if (!LLPipeline::sRenderDeferred)
{
bump->setExplicitFormat(GL_ALPHA8, GL_ALPHA);
bump->createGLTexture(bump->getDiscardLevel(), dst_image);
bump->createGLTexture(0, dst_image);
}
else
{
LLPointer<LLImageRaw> nrm_image = new LLImageRaw(src->getWidth(), src->getHeight(), 4);
generateNormalMapFromAlpha(src, nrm_image);
bump->setExplicitFormat(GL_RGBA, GL_RGBA);
bump->createGLTexture(bump->getDiscardLevel(), nrm_image);
bump->createGLTexture(0, nrm_image);
}