diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llsurface.cpp | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2 meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz |
Second Life viewer sources 1.22.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llsurface.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/newview/llsurface.cpp b/linden/indra/newview/llsurface.cpp index 017517c..b046f97 100644 --- a/linden/indra/newview/llsurface.cpp +++ b/linden/indra/newview/llsurface.cpp | |||
@@ -33,6 +33,8 @@ | |||
33 | 33 | ||
34 | #include "llsurface.h" | 34 | #include "llsurface.h" |
35 | 35 | ||
36 | #include "llrender.h" | ||
37 | |||
36 | #include "llviewerimagelist.h" | 38 | #include "llviewerimagelist.h" |
37 | #include "llpatchvertexarray.h" | 39 | #include "llpatchvertexarray.h" |
38 | #include "patch_dct.h" | 40 | #include "patch_dct.h" |
@@ -249,7 +251,7 @@ void LLSurface::createSTexture() | |||
249 | 251 | ||
250 | mSTexturep = new LLViewerImage(raw, FALSE); | 252 | mSTexturep = new LLViewerImage(raw, FALSE); |
251 | mSTexturep->dontDiscard(); | 253 | mSTexturep->dontDiscard(); |
252 | mSTexturep->bind(); | 254 | gGL.getTexUnit(0)->bind(mSTexturep.get()); |
253 | mSTexturep->setClamp(TRUE, TRUE); | 255 | mSTexturep->setClamp(TRUE, TRUE); |
254 | gImageList.addImage(mSTexturep); | 256 | gImageList.addImage(mSTexturep); |
255 | } | 257 | } |
@@ -274,7 +276,7 @@ void LLSurface::createWaterTexture() | |||
274 | } | 276 | } |
275 | mWaterTexturep = new LLViewerImage(raw, FALSE); | 277 | mWaterTexturep = new LLViewerImage(raw, FALSE); |
276 | mWaterTexturep->dontDiscard(); | 278 | mWaterTexturep->dontDiscard(); |
277 | mWaterTexturep->bind(); | 279 | gGL.getTexUnit(0)->bind(mWaterTexturep.get()); |
278 | mWaterTexturep->setClamp(TRUE, TRUE); | 280 | mWaterTexturep->setClamp(TRUE, TRUE); |
279 | gImageList.addImage(mWaterTexturep); | 281 | gImageList.addImage(mWaterTexturep); |
280 | } | 282 | } |