aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender/llrender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llrender/llrender.cpp')
-rw-r--r--linden/indra/llrender/llrender.cpp6
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
440LLRender::~LLRender() 440LLRender::~LLRender()
441{ 441{
442 shutdown();
443}
444
445void 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
448void LLRender::translatef(const GLfloat& x, const GLfloat& y, const GLfloat& z) 454void LLRender::translatef(const GLfloat& x, const GLfloat& y, const GLfloat& z)