diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-05-25 15:53:45 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-05-25 15:53:45 -0500 |
| commit | dbefd976ed137e04b7f43949b029ccb3db6a5399 (patch) | |
| tree | f220831b20c6c2855ef75a84e1d2ecf0ee0ab709 /indra/llrender/llimagegl.cpp | |
| parent | 8e728befa57bcea0981179709dd5f13af1cd29a8 (diff) | |
| parent | 9eea451a82379a61fa4a6cc2a55274e06cecbd58 (diff) | |
merge
Diffstat (limited to 'indra/llrender/llimagegl.cpp')
| -rw-r--r-- | indra/llrender/llimagegl.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp index d408077c68..3a4139bace 100644 --- a/indra/llrender/llimagegl.cpp +++ b/indra/llrender/llimagegl.cpp @@ -1083,12 +1083,17 @@ void LLImageGL::generateTextures(S32 numTextures, U32 *textures) } // static -void LLImageGL::deleteTextures(S32 numTextures, U32 *textures) +void LLImageGL::deleteTextures(S32 numTextures, U32 *textures, bool immediate) { for (S32 i = 0; i < numTextures; i++) { sDeadTextureList.push_back(textures[i]); } + + if (immediate) + { + LLImageGL::deleteDeadTextures(); + } } // static @@ -1417,7 +1422,7 @@ void LLImageGL::deleteDeadTextures() { if (sCurrentBoundTextures[i] == tex) { - gGL.getTexUnit(i)->unbind(LLTexUnit::TT_TEXTURE); + gGL.getTexUnit(i)->unbind(gGL.getTexUnit(i)->getCurrType()); stop_glerror(); } } |
