gallium: fix trim() function bug when count < first
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 4 Jul 2008 15:59:43 +0000 (09:59 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 4 Jul 2008 16:02:43 +0000 (10:02 -0600)
commitba9e6339028c36269cb50bb8535e415fa8e6e4c9
treec7b991048b99d30566278c3908785d5f5f839da8
parent294b061256220960e7e29fbc8ecbd2ffce75de40
gallium: fix trim() function bug when count < first

If the user called glDrawArrays(GL_TRIANGLES, count=1), trim() returned a
very large integer because of the unsigned arithmetic.
src/gallium/auxiliary/draw/draw_pt.c