diff options
author | Dave Parks <davep@lindenlab.com> | 2012-06-22 17:31:46 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-06-22 17:31:46 -0500 |
commit | 28ccf4190e83670af2f03015ac16db6b9c76c805 (patch) | |
tree | 865ccec0d7546a6ae73922bd30e4b605be650d40 /indra/llrender | |
parent | 7929db82d1d1db8d4ce7ecbd8436c51dea106f82 (diff) |
MAINT-653 Fix for shadow acne at high altitudes
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llshadermgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index bf917d4474..e828b7c4e8 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -643,7 +643,7 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade text[count++] = strdup("#define textureCube texture\n"); text[count++] = strdup("#define texture2DLod textureLod\n"); text[count++] = strdup("#define shadow2D(a,b) vec2(texture(a,b))\n"); - + if (major_version > 1 || minor_version >= 40) { //GLSL 1.40 replaces texture2DRect et al with texture text[count++] = strdup("#define texture2DRect texture\n"); |