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

@@ -261,7 +261,7 @@ void LLRenderTarget::release()
}
else
{
LLImageGL::deleteTextures(1, &mDepth);
LLImageGL::deleteTextures(1, &mDepth, true);
stop_glerror();
}
mDepth = 0;
@@ -290,7 +290,7 @@ void LLRenderTarget::release()
if (mTex.size() > 0)
{
LLImageGL::deleteTextures(mTex.size(), &mTex[0]);
LLImageGL::deleteTextures(mTex.size(), &mTex[0], true);
mTex.clear();
}