From 1ea525a4bd63c9c6379bec7b1eb80860ee971ec0 Mon Sep 17 00:00:00 2001 From: Howard Stearns Date: Tue, 13 Sep 2022 10:25:34 -0700 Subject: SL-17701 - fix typo in shader affecting mac --- indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl | 2 +- indra/newview/app_settings/shaders/class1/deferred/pbralphaV.glsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview/app_settings/shaders/class1') 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 -- cgit v1.2.3