summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1
diff options
context:
space:
mode:
authorHoward Stearns <howard.stearns@gmail.com>2022-09-13 10:25:34 -0700
committerHoward Stearns <howard.stearns@gmail.com>2022-09-13 10:25:34 -0700
commit1ea525a4bd63c9c6379bec7b1eb80860ee971ec0 (patch)
treeaa6190636dd75cab2a512e62bc8a7f9f108e89e6 /indra/newview/app_settings/shaders/class1
parent0af4adbb8696178767b5972e4c7d879bcdc527e9 (diff)
SL-17701 - fix typo in shader affecting mac
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl2
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/pbralphaV.glsl2
2 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl
index bde015d109..a1fdf8991b 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl
@@ -211,7 +211,7 @@ void main()
tnorm = normalize(tnorm.xyz);
norm.xyz = tnorm.xyz;
-#if HAS_SHADOW
+#ifdef HAS_SHADOW
vec2 frag = vary_fragcoord.xy/vary_fragcoord.z*0.5+0.5;
frag *= screen_res;
scol = sampleDirectionalShadow(pos.xyz, norm.xyz, frag);
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbralphaV.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbralphaV.glsl
index e0672f09e4..57a162ad51 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/pbralphaV.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/pbralphaV.glsl
@@ -94,7 +94,7 @@ void main()
#endif
gl_Position = vert;
-#if HAS_SHADOW
+#ifdef HAS_SHADOW
vary_fragcoord.xyz = vert.xyz + vec3(0,0,near_clip);
#endif