summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2014-12-01 15:49:31 -0500
committerOz Linden <oz@lindenlab.com>2014-12-01 15:49:31 -0500
commit0013a503530f329674551d3a21514d52bcab0139 (patch)
treeccc9c56888f7ae4c430182ba87f7706bd1335b74 /indra/llrender
parent4ee98e1fc9aee96bad58370c5e2bd5e2a1af7b4b (diff)
parentd960676c5af26b299166bdd74744a7f513b45541 (diff)
merge changes for 3.7.21 release
Diffstat (limited to 'indra/llrender')
-rwxr-xr-xindra/llrender/llshadermgr.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index a89ec675b4..b2be3cc3b6 100755
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -674,12 +674,17 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
if (defines)
{
for (boost::unordered_map<std::string,std::string>::iterator iter = defines->begin(); iter != defines->end(); ++iter)
- {
- std::string define = "#define " + iter->first + " " + iter->second + "\n";
- text[count++] = (GLcharARB *) strdup(define.c_str());
- }
+ {
+ std::string define = "#define " + iter->first + " " + iter->second + "\n";
+ text[count++] = (GLcharARB *) strdup(define.c_str());
+ }
}
+ if( gGLManager.mIsATI )
+ {
+ text[ count++ ] = strdup( "#define IS_AMD_CARD 1\n" );
+ }
+
if (texture_index_channels > 0 && type == GL_FRAGMENT_SHADER_ARB)
{
//use specified number of texture channels for indexed texture rendering