Now letting LLRenderTarget delete bound textures immediately instead of having them hang around until next frame.

This commit is contained in:
Shyotl
2011-07-17 19:48:37 -05:00
parent 330bf08c9b
commit 66336e8151
3 changed files with 9 additions and 4 deletions

View File

@@ -1015,12 +1015,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