summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1
diff options
context:
space:
mode:
authorGraham Madarasz (Graham) <graham@lindenlab.com>2013-04-22 14:12:34 -0700
committerGraham Madarasz (Graham) <graham@lindenlab.com>2013-04-22 14:12:34 -0700
commitb5868bda0d441823fa9783a1c712c258f4cecfa5 (patch)
tree809b68646b278f2ffea392da1b05e5dc0b0ade36 /indra/newview/app_settings/shaders/class1
parent38b222e76bc5fc4dd3f05787a45f38087b4af5cc (diff)
Fix avatar alpha shader define setup
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl4
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl2
2 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl b/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl
index ec04f856fb..9f1fdb4385 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl
@@ -106,9 +106,7 @@ void main()
#ifdef USE_INDEXED_TEX
vec4 diff = diffuseLookup(vary_texcoord0.xy);
-#endif
-
-#ifdef USE_DIFFUSE_TEX
+#else
vec4 diff = texture2D(diffuseMap,vary_texcoord0.xy);
#endif
diff --git a/indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl b/indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl
index 91f7b007f3..20042f2248 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/alphaV.glsl
@@ -50,7 +50,7 @@ ATTRIBUTE vec2 texcoord0;
#ifdef HAS_SKIN
mat4 getObjectSkinnedTransform();
#else
-ifdef IS_AVATAR_SKIN
+#ifdef IS_AVATAR_SKIN
mat4 getSkinnedTransform();
#endif
#endif