On 30/10/2007, Roland Scheidegger <firstname.lastname@example.org> wrote:
Hmm, so max_index is -1. Apparently gtkradiant has called drawArrays
with a count of 0 (which is legal though pretty much a no-op), it seems
we don't handle that correctly. (calculating start + count - 1 is a
problem there...). I'd guess the solution for that is checking for count
== 0 and returning early in vbo_exec_DrawArrays in this case. Maybe the
same problem can be found in other places, haven't really looked at it
(e.g. the drawelements functions).