Clip triangles against softpipe->cliprect which includes scissor and surface bounds.
authorBrian <brian.paul@tungstengraphics.com>
Fri, 27 Jul 2007 16:50:35 +0000 (10:50 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 27 Jul 2007 16:50:35 +0000 (10:50 -0600)
commit05ba76757b7349f0c3de2d9ce42c543fa7e931c2
tree61e486fcd903df3adac18eef7d5c6eb3755a953e
parent05bde092f39e16463dfbbe038f22f17da4346527
Clip triangles against softpipe->cliprect which includes scissor and surface bounds.

This prevents rendering out of bounds when the viewport is partially outside the surface bounds.
src/mesa/pipe/softpipe/sp_prim_setup.c
src/mesa/pipe/softpipe/sp_state_derived.c