summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMichael Pohoreski <ptolemy@lindenlab.com>2021-02-01 22:29:00 +0000
committerMichael Pohoreski <ptolemy@lindenlab.com>2021-02-01 22:29:00 +0000
commit8b38ed6dc3ed00ca083d268239acb2ca65e03a2a (patch)
tree22855c9efa05b3dea372799024332bba881604b5 /indra/newview
parentcccb489cca16186da94cbea3a2a87cec2b88100e (diff)
parentcc6d132e90921c7006253f6fba149d22f2cabd39 (diff)
Merged in SL-14732 (pull request #456)
SL-14732 Undefined behavior in class2 windlight cloud fragment shader Approved-by: Dave Houlton
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/app_settings/shaders/class2/windlight/cloudsF.glsl8
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/newview/app_settings/shaders/class2/windlight/cloudsF.glsl b/indra/newview/app_settings/shaders/class2/windlight/cloudsF.glsl
index 75bf8730df..fa928d993e 100644
--- a/indra/newview/app_settings/shaders/class2/windlight/cloudsF.glsl
+++ b/indra/newview/app_settings/shaders/class2/windlight/cloudsF.glsl
@@ -26,9 +26,9 @@
/*[EXTRA_CODE_HERE]*/
#ifdef DEFINE_GL_FRAGCOLOR
-out vec4 frag_data[3];
+out vec4 frag_color;
#else
-#define frag_data gl_FragData
+#define frag_color gl_FragColor
#endif
/////////////////////////////////////////////////////////////////////////
@@ -126,8 +126,6 @@ void main()
color.rgb = scaleSoftClip(color.rgb);
/// Gamma correct for WL (soft clip effect).
- frag_data[0] = vec4(color.rgb, alpha1);
- frag_data[1] = vec4(0.0,0.0,0.0,0.0);
- frag_data[2] = vec4(0,0,0,1);
+ frag_color = vec4(color.rgb, alpha1);
}