summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolterrain.cpp
diff options
context:
space:
mode:
authorgraham linden <graham@lindenlab.com>2013-03-05 13:42:57 -0800
committergraham linden <graham@lindenlab.com>2013-03-05 13:42:57 -0800
commit046014aa10e535bfa18e3d7b4c2da70284a615ae (patch)
treea2ddc78c2da49f22ae6c11195b0fbc5c27e32e5b /indra/newview/lldrawpoolterrain.cpp
parentb19eeabd54afcfb56e864899c166b64db1ac6790 (diff)
parenta65c275865f1cc9bf53237e4b8c99a7bee3731ee (diff)
Merged lindenlab/viewer-cat into default
Diffstat (limited to 'indra/newview/lldrawpoolterrain.cpp')
-rw-r--r--indra/newview/lldrawpoolterrain.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/indra/newview/lldrawpoolterrain.cpp b/indra/newview/lldrawpoolterrain.cpp
index 3805348b6b..cac862a107 100644
--- a/indra/newview/lldrawpoolterrain.cpp
+++ b/indra/newview/lldrawpoolterrain.cpp
@@ -49,9 +49,6 @@
#include "llviewershadermgr.h"
#include "llrender.h"
-static LLStaticHashedString sObjectPlaneS("object_plane_s");
-static LLStaticHashedString sObjectPlaneT("object_plane_t");
-
const F32 DETAIL_SCALE = 1.f/16.f;
int DebugDetailMap = 0;
@@ -355,8 +352,8 @@ void LLDrawPoolTerrain::renderFullShader()
LLGLSLShader* shader = LLGLSLShader::sCurBoundShaderPtr;
llassert(shader);
- shader->uniform4fv(sObjectPlaneS, 1, tp0.mV);
- shader->uniform4fv(sObjectPlaneT, 1, tp1.mV);
+ shader->uniform4fv(LLShaderMgr::OBJECT_PLANE_S, 1, tp0.mV);
+ shader->uniform4fv(LLShaderMgr::OBJECT_PLANE_T, 1, tp1.mV);
gGL.matrixMode(LLRender::MM_TEXTURE);
gGL.loadIdentity();
@@ -865,8 +862,8 @@ void LLDrawPoolTerrain::renderSimple()
if (LLGLSLShader::sNoFixedFunction)
{
- sShader->uniform4fv(sObjectPlaneS, 1, tp0.mV);
- sShader->uniform4fv(sObjectPlaneT, 1, tp1.mV);
+ sShader->uniform4fv(LLShaderMgr::OBJECT_PLANE_S, 1, tp0.mV);
+ sShader->uniform4fv(LLShaderMgr::OBJECT_PLANE_T, 1, tp1.mV);
}
else
{