Skip to content

Commit 9212e09

Browse files
committed
SL-20730 Patch another potential source of NaNs
1 parent 7e9ab0b commit 9212e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indra/newview/app_settings/shaders/class1/deferred/emissiveF.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ void main()
3434
{
3535
// NOTE: when this shader is used, only alpha is being written to
3636
float a = diffuseLookup(vary_texcoord0.xy).a*vertex_color.a;
37-
frag_color = vec4(0, 0, 0, a);
37+
frag_color = max(vec4(0, 0, 0, a), vec4(0));
3838
}
3939

0 commit comments

Comments
 (0)