summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2014-12-01 15:49:31 -0500
committerOz Linden <oz@lindenlab.com>2014-12-01 15:49:31 -0500
commit0013a503530f329674551d3a21514d52bcab0139 (patch)
treeccc9c56888f7ae4c430182ba87f7706bd1335b74 /indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl
parent4ee98e1fc9aee96bad58370c5e2bd5e2a1af7b4b (diff)
parentd960676c5af26b299166bdd74744a7f513b45541 (diff)
merge changes for 3.7.21 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
}