diff options
Diffstat (limited to 'linden/indra/llrender/llrender.cpp')
-rw-r--r-- | linden/indra/llrender/llrender.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/llrender/llrender.cpp b/linden/indra/llrender/llrender.cpp index 13edf8a..7be06af 100644 --- a/linden/indra/llrender/llrender.cpp +++ b/linden/indra/llrender/llrender.cpp | |||
@@ -439,10 +439,16 @@ LLRender::LLRender() | |||
439 | 439 | ||
440 | LLRender::~LLRender() | 440 | LLRender::~LLRender() |
441 | { | 441 | { |
442 | shutdown(); | ||
443 | } | ||
444 | |||
445 | void LLRender::shutdown() | ||
446 | { | ||
442 | for (U32 i = 0; i < mTexUnits.size(); i++) | 447 | for (U32 i = 0; i < mTexUnits.size(); i++) |
443 | { | 448 | { |
444 | delete mTexUnits[i]; | 449 | delete mTexUnits[i]; |
445 | } | 450 | } |
451 | mTexUnits.clear(); | ||
446 | } | 452 | } |
447 | 453 | ||
448 | void LLRender::translatef(const GLfloat& x, const GLfloat& y, const GLfloat& z) | 454 | void LLRender::translatef(const GLfloat& x, const GLfloat& y, const GLfloat& z) |