diff options
author | Oz Linden <oz@lindenlab.com> | 2014-10-14 11:22:39 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2014-10-14 11:22:39 -0400 |
commit | 7ffa456683ed7babd8abf16d48f0871a7001f3e6 (patch) | |
tree | 0ca61fabcce55de740da7105b22d439456d77f2e /indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl | |
parent | e271fe7091e76373c277625ffcb2cba0c9a02746 (diff) |
STORM-2080: correct fitted mesh rendering on some ATI cards
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl')
-rwxr-xr-x | indra/newview/app_settings/shaders/class1/deferred/postgiF.glsl | 6 |
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 } |