summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaBlendV.glsl
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-01-17 08:32:09 -0800
committerGraham Linden <graham@lindenlab.com>2019-01-17 08:32:09 -0800
commit066eb59808d5649c745fdc6c37b62f2eb9a19b6f (patch)
treef020f149739116455ff83dd94fbc62884a619916 /indra/newview/app_settings/shaders/class1/deferred/shadowAlphaBlendV.glsl
parent042454bda9506185ebf82e3bbdf4305214d6af84 (diff)
SL-10368
Fix OSX shader compile bug from use of #if FOO instead of #ifdef FOO or #if defined(FOO) preventing atmospherics (and thus ALM) from working on OSX.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/shadowAlphaBlendV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/shadowAlphaBlendV.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaBlendV.glsl b/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaBlendV.glsl
index 11411a605c..f45c343066 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaBlendV.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/shadowAlphaBlendV.glsl
@@ -31,7 +31,7 @@ ATTRIBUTE vec3 position;
ATTRIBUTE vec4 diffuse_color;
ATTRIBUTE vec2 texcoord0;
-#if !DEPTH_CLAMP
+#if !defined(DEPTH_CLAMP)
VARYING float pos_zd2;
#endif
@@ -52,7 +52,7 @@ void main()
pos_w = pos.w;
-#if !DEPTH_CLAMP
+#if !defined(DEPTH_CLAMP)
pos_zd2 = pos.z * 0.5;
gl_Position = vec4(pos.x, pos.y, pos.w*0.5, pos.w);