aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llrender')
-rw-r--r--linden/indra/llrender/llrender.cpp6
-rw-r--r--linden/indra/llrender/llrender.h3
2 files changed, 8 insertions, 1 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)
diff --git a/linden/indra/llrender/llrender.h b/linden/indra/llrender/llrender.h
index edf46ff..15360a3 100644
--- a/linden/indra/llrender/llrender.h
+++ b/linden/indra/llrender/llrender.h
@@ -176,7 +176,8 @@ public:
176 176
177 LLRender(); 177 LLRender();
178 ~LLRender(); 178 ~LLRender();
179 179 void shutdown();
180
180 void translatef(const GLfloat& x, const GLfloat& y, const GLfloat& z); 181 void translatef(const GLfloat& x, const GLfloat& y, const GLfloat& z);
181 void scalef(const GLfloat& x, const GLfloat& y, const GLfloat& z); 182 void scalef(const GLfloat& x, const GLfloat& y, const GLfloat& z);
182 void pushMatrix(); 183 void pushMatrix();