summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2014-12-05 17:12:42 -0500
committerOz Linden <oz@lindenlab.com>2014-12-05 17:12:42 -0500
commitbf2e3fca73b80afa10a1c913ba752fcaf79ccd19 (patch)
tree12a8ae6dd43c065b6ebc91f4b3ad1e29eade4c7f /indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl
parent44f5d7320952de2c4c7e1062b1c02c2f521400fa (diff)
parent6d48db868f7459fcf5f0e89d830a844e409d4163 (diff)
merge changes for 3.7.22-release
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl')
-rwxr-xr-xindra/newview/app_settings/shaders/class1/deferred/postgiF.glsl6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl b/indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl
index 96f9628424..018ced4cad 100755
--- a/indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl
@@ -99,4 +99,10 @@ void main()
col = col*col*blur_quad.x + col*blur_quad.y + blur_quad.z;
frag_color.rgb = col;
+
+#ifdef IS_AMD_CARD
+ // If it's AMD make sure the GLSL compiler sees the arrays referenced once by static index. Otherwise it seems to optimise the storage awawy which leads to unfun crashes and artifacts.
+ vec2 dummy1 = kern[0];
+ vec2 dummy2 = kern[31];
+#endif
}