diff options
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r-- | indra/llrender/llrender.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 4a87424bb8..9b116d6410 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -439,10 +439,16 @@ LLRender::LLRender() LLRender::~LLRender() { + shutdown(); +} + +void LLRender::shutdown() +{ for (U32 i = 0; i < mTexUnits.size(); i++) { delete mTexUnits[i]; } + mTexUnits.clear(); } void LLRender::translatef(const GLfloat& x, const GLfloat& y, const GLfloat& z) |