summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-02-13 13:55:51 -0600
committerDave Parks <davep@lindenlab.com>2012-02-13 13:55:51 -0600
commit76a27f5100666739aae53c0988318a6dae647666 (patch)
tree2b57ec01366481a7c88a326c478811eed732073a /indra/llrender
parent9a4719e0ba3059bbc9e7942722de261ca3081ed0 (diff)
SH-2964 Fix for shader compilation error on some older NVIDIA cards.
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llshadermgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index 321b139181..269f78c8cd 100644
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -663,7 +663,7 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
.
uniform sampler2D texN;
- VARYING uvec4 vary_texture_index;
+ VARYING ivec4 vary_texture_index;
vec4 diffuseLookup(vec2 texcoord)
{
@@ -691,7 +691,7 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade
if (texture_index_channels > 1)
{
- text[count++] = strdup("VARYING_FLAT uvec4 vary_texture_index;\n");
+ text[count++] = strdup("VARYING_FLAT ivec4 vary_texture_index;\n");
}
text[count++] = strdup("vec4 diffuseLookup(vec2 texcoord)\n");