SH-2244 Fix for shaders not building on GL < 2.1

meow-7.2.2
Dave Parks 2011-09-24 13:52:00 -05:00
parent 2b604adf7b
commit 552a02dcba
1 changed files with 2 additions and 0 deletions

View File

@ -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)
{