Skip to content
Snippets Groups Projects
Commit 9212e094 authored by David Parks's avatar David Parks
Browse files

SL-20730 Patch another potential source of NaNs

parent 7e9ab0ba
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,6 @@ void main()
{
// NOTE: when this shader is used, only alpha is being written to
float a = diffuseLookup(vary_texcoord0.xy).a*vertex_color.a;
frag_color = vec4(0, 0, 0, a);
frag_color = max(vec4(0, 0, 0, a), vec4(0));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment