summaryrefslogtreecommitdiff
path: root/indra/llrender/llshadermgr.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-02-22 14:30:24 -0600
committerDave Parks <davep@lindenlab.com>2012-02-22 14:30:24 -0600
commit8f261582b80d7d4a61cf8bb42c0429fa58f0c186 (patch)
tree36a8e3ec0273069eeffe405e53db44caa1add931 /indra/llrender/llshadermgr.cpp
parente1a71a97cd00d70fedeb6191b6ebb10361019ee1 (diff)
SH-2908 Fix for crash when enabling Lighting and Shadows on some AMD GPUs
Diffstat (limited to 'indra/llrender/llshadermgr.cpp')
-rw-r--r--indra/llrender/llshadermgr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index e1cd8fa62d..b28a97adaa 100644
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -644,6 +644,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");
+ text[count++] = strdup("#define shadow2DRect(a,b) vec2(texture(a,b))\n");
}
//copy preprocessor definitions into buffer