aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-12 14:59:33 -0500
committerJacek Antonelli2008-09-12 14:59:39 -0500
commit80a8bab2a9dd8e77262b001af973212a6cba4a5a (patch)
tree170168232fd4e2eec5f15295a9445535969cdb76 /linden/indra/llrender
parentSecond Life viewer sources 1.21.1-RC (diff)
downloadmeta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.zip
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.gz
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.bz2
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.xz
Second Life viewer sources 1.21.2-RC
Diffstat (limited to '')
-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();