Jose Rodriguez wrote:
>> On Mon, 29 Oct 2007 22:50:06 +0100
>> Roland Scheidegger <[EMAIL PROTECTED]> wrote:
>> Also, could you provide a backtrace
>> from gdb? What are the max_index and min_index values?
> 
> Er...not sure, there are a couple of values for each. Take a look
> below, please.

> #5  0xb69c9ad9 in _tnl_draw_prims (ctx=0x8ac8518,
> #arrays=0x8b11dd8, prim=0xbf974
> ba0, nr_prims=1, ib=0x0, min_index=0, max_index=4294967295) at
> tnl/t_draw.c:384 limits = {max_verts = 3000, max_indices =
> 4294967295, max_vb_size = 4294 967295}
>         tnl = (TNLcontext *) 0x8b23688
> #6  0xb69c2ce5 in vbo_exec_DrawArrays (mode=6, start=0, count=0)
> #at vbo/vbo_exec
> _array.c:259
>         ctx = <value optimized out>
>         prim = {{mode = 6, indexed = 0, begin = 1, end = 1, weak =
> 0, pad = 0, s tart = 0, count = 0}}
> #7  0x081c3026 in RenderablePatchWireframe::render
> #(this=0x996ccb0, state=128) a
> t radiant/patch.h:221
>         n = 0
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).

Roland

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to