aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llsurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llsurface.cpp')
-rw-r--r--linden/indra/newview/llsurface.cpp6
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 }