summaryrefslogtreecommitdiff
path: root/indra/newview/llworld.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llworld.cpp')
-rw-r--r--indra/newview/llworld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp
index 8cebf1c12a..63f9ef0b57 100644
--- a/indra/newview/llworld.cpp
+++ b/indra/newview/llworld.cpp
@@ -32,6 +32,7 @@
#include "llviewerprecompiledheaders.h"
#include "llworld.h"
+#include "llrender.h"
#include "indra_constants.h"
#include "llstl.h"
@@ -108,7 +109,7 @@ LLWorld::LLWorld() :
*(default_texture++) = MAX_WATER_COLOR.mV[3];
mDefaultWaterTexturep = new LLViewerImage(raw, FALSE);
- mDefaultWaterTexturep->bind();
+ gGL.getTexUnit(0)->bind(mDefaultWaterTexturep.get());
mDefaultWaterTexturep->setClamp(TRUE, TRUE);
}