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.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llsurface.cpp b/linden/indra/newview/llsurface.cpp
index 017517c..e301516 100644
--- a/linden/indra/newview/llsurface.cpp
+++ b/linden/indra/newview/llsurface.cpp
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2000&license=viewergpl$ 5 * $LicenseInfo:firstyear=2000&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2000-2008, Linden Research, Inc. 7 * Copyright (c) 2000-2009, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -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 }