diff options
author | Leslie Linden <leslie@lindenlab.com> | 2011-08-24 15:41:00 -0700 |
---|---|---|
committer | Leslie Linden <leslie@lindenlab.com> | 2011-08-24 15:41:00 -0700 |
commit | bf0d36bf889bb913fbc2a53c5a1b9818acb11ee6 (patch) | |
tree | 62e75dd7ea2791addced07fa595dd37789cc12cc /indra/llrender/llshadermgr.cpp | |
parent | 11d7a7f197d31617602ff9c109674a783fd6fa71 (diff) |
Mac rendering now with 100% fewer crashes when enabling shadows.
Diffstat (limited to 'indra/llrender/llshadermgr.cpp')
-rw-r--r-- | indra/llrender/llshadermgr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index b487cda4ef..db3d7becd9 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -544,10 +544,13 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade { //set version to 1.20 text[count++] = strdup("#version 120\n"); + text[count++] = strdup("#define FXAA_GLSL_120 1\n"); + text[count++] = strdup("#define FXAA_FAST_PIXEL_OFFSET 0\n"); } else { //set version to 1.30 text[count++] = strdup("#version 130\n"); + text[count++] = strdup("#define FXAA_GLSL_130 1\n"); } //copy preprocessor definitions into buffer |