summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-09-14 18:53:16 -0500
committerDave Parks <davep@lindenlab.com>2022-09-14 18:53:16 -0500
commite61b6570b15e5d7843712ea65e11c3df42bf4f81 (patch)
treeae0e12f6a2b47837e1eac62d81b7834feb1e7d86 /indra/newview/app_settings/shaders/class1
parentafb7efbfcc39f93bb018de6e0b4e5f0839a68ef5 (diff)
SL-17701 Fix for crash on AMD WHQL drivers.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl15
1 files changed, 1 insertions, 14 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl
index a7dc5f22c8..9d3339f607 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/pbralphaF.glsl
@@ -268,20 +268,7 @@ void main()
vec3 light = vec3(0);
// Punctual lights
-#define LIGHT_LOOP(i) light += calcPointLightOrSpotLight( \
- reflect0, \
- reflect90, \
- alphaRough, \
- c_diff, \
- light_diffuse[i].rgb, \
- base.rgb, \
- pos.xyz, \
- v, \
- n, \
- light_position[i], \
- light_direction[i].xyz, \
- light_deferred_attenuation[i].x, light_deferred_attenuation[i].y, \
- light_attenuation[i].z, light_attenuation[i].w );
+#define LIGHT_LOOP(i) light += calcPointLightOrSpotLight( reflect0, reflect90, alphaRough, c_diff, light_diffuse[i].rgb, base.rgb, pos.xyz, v, n, light_position[i], light_direction[i].xyz, light_deferred_attenuation[i].x, light_deferred_attenuation[i].y, light_attenuation[i].z, light_attenuation[i].w );
LIGHT_LOOP(1)
LIGHT_LOOP(2)