If the user called glDrawArrays(GL_TRIANGLES, count=1), trim() returned a very large integer because of the unsigned arithmetic.tags/mesa_20090313
@@ -37,6 +37,8 @@ | |||
static unsigned trim( unsigned count, unsigned first, unsigned incr ) | |||
{ | |||
if (count < first) | |||
return 0; | |||
return count - (count - first) % incr; | |||
} | |||