summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-09-24 13:52:00 -0500
committerDave Parks <davep@lindenlab.com>2011-09-24 13:52:00 -0500
commit552a02dcbaf5868b5d2164e3bf2a8732f9bce0dd (patch)
treedc8485e20d97e1ddab81b6389c4d0c12029aeb5d /indra
parent2b604adf7bd20bbd78fce38ed44e2eba1ff1cdc8 (diff)
SH-2244 Fix for shaders not building on GL < 2.1
Diffstat (limited to 'indra')
-rw-r--r--indra/llrender/llshadermgr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index 889b436ac5..55c10b4341 100644
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -539,6 +539,8 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
if (gGLManager.mGLVersion < 2.1f)
{
text[count++] = strdup("#version 110\n");
+ text[count++] = strdup("#define ATTRIBUTE attribute\n");
+ text[count++] = strdup("#define VARYING varying\n");
}
else if (gGLManager.mGLVersion < 3.f)
{