Fix shader link failures on 64-bit Linux with ATI and maximum texture index > 1.

meow-7.2.2
Tonya Souther 2013-01-17 18:04:43 -06:00
parent d395a114ef
commit 828cb2cc5a
1 changed files with 3 additions and 0 deletions

View File

@ -713,9 +713,12 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
// text[count++] = strdup("VARYING_FLAT int vary_texture_index;\n");
// <FS:TS> This causes shader link failures on 64-bit Linux
#if !(LL_GNUC && ( defined(__amd64__) || defined(__x86_64__) ) )
if( gGLManager.mIsATI )
text[count++] = strdup("VARYING int vary_texture_index;\n");
else
#endif
text[count++] = strdup("VARYING_FLAT int vary_texture_index;\n");
// </FS:ND>