summaryrefslogtreecommitdiff
path: root/indra/newview/llsurface.cpp
diff options
context:
space:
mode:
authorMark Palange <palange@lindenlab.com>2008-11-07 17:51:03 +0000
committerMark Palange <palange@lindenlab.com>2008-11-07 17:51:03 +0000
commitf89f19990cbb9f3f2e7473ac6c159098bdfabec7 (patch)
treee7fa406e2db5e9adc2e24e00557d7b3d3f93203a /indra/newview/llsurface.cpp
parentb2bfb128e7d30e1cdb293a2ac192a0cbe63fe528 (diff)
QAR-992 Merging revisions 101012-101170,101686-101687 of svn+ssh://svn.lindenlab.com/svn/linden/qa/viewer_combo_1-22-merge into linden/release
Diffstat (limited to 'indra/newview/llsurface.cpp')
-rw-r--r--indra/newview/llsurface.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llsurface.cpp b/indra/newview/llsurface.cpp
index fa85d89388..75bb3f545b 100644
--- a/indra/newview/llsurface.cpp
+++ b/indra/newview/llsurface.cpp
@@ -33,6 +33,8 @@
#include "llsurface.h"
+#include "llrender.h"
+
#include "llviewerimagelist.h"
#include "llpatchvertexarray.h"
#include "patch_dct.h"
@@ -249,7 +251,7 @@ void LLSurface::createSTexture()
mSTexturep = new LLViewerImage(raw, FALSE);
mSTexturep->dontDiscard();
- mSTexturep->bind();
+ gGL.getTexUnit(0)->bind(mSTexturep.get());
mSTexturep->setClamp(TRUE, TRUE);
gImageList.addImage(mSTexturep);
}
@@ -274,7 +276,7 @@ void LLSurface::createWaterTexture()
}
mWaterTexturep = new LLViewerImage(raw, FALSE);
mWaterTexturep->dontDiscard();
- mWaterTexturep->bind();
+ gGL.getTexUnit(0)->bind(mWaterTexturep.get());
mWaterTexturep->setClamp(TRUE, TRUE);
gImageList.addImage(mWaterTexturep);
}