diff options
author | Dave Parks <davep@lindenlab.com> | 2021-12-03 15:07:31 +0000 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2021-12-03 15:07:31 +0000 |
commit | e7830b39f01d9f9c82e9e2029634dffb8386b24e (patch) | |
tree | 4be81717808f245e62cc7a76b5c148b2096472a1 /indra/llrender/llrender.cpp | |
parent | 511de439a35ddb22c6f174b85c599d4881b9c139 (diff) |
SL-16436 and SL-16327 Fix for RenderDebugGL test failures and fix for grey textures
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r-- | indra/llrender/llrender.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 235f8a8eb0..8b4f250894 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -181,7 +181,11 @@ void LLTexUnit::bindFast(LLTexture* texture) mCurrTexture = gl_tex->getTexName(); if (!mCurrTexture) { - mCurrTexture = LLImageGL::sDefaultGLTexture->getTexName(); + LL_PROFILE_ZONE_NAMED("MISSING TEXTURE"); + //if deleted, will re-generate it immediately + texture->forceImmediateUpdate(); + gl_tex->forceUpdateBindStats(); + texture->bindDefaultImage(mIndex); } glBindTexture(sGLTextureType[gl_tex->getTarget()], mCurrTexture); mHasMipMaps = gl_tex->mHasMipMaps; |