swrast: always do span clipping in _swrast_write_rgba_span()
authorBrian Paul <brianp@vmware.com>
Wed, 3 Jun 2009 23:09:03 +0000 (17:09 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 3 Jun 2009 23:16:00 +0000 (17:16 -0600)
commitf25e1007c2da21dc529811e9e1f4b4da6bda8be4
treee969c33f3e5740718c6208e032b931274580425d
parent0b6a0b367fdb575048b69d80ad4202d164a61f1e
swrast: always do span clipping in _swrast_write_rgba_span()

It's possible for mis-behaving vertex programs to produce vertex data
with very large/NaN values.  This doesn't get handled reliably by the
clipper code so we may try to rasterize triangles that extend beyond
the viewport/window.  Always clip spans to avoid invalid memory accesses
later.
src/mesa/swrast/s_span.c