summaryrefslogtreecommitdiff
path: root/src/mesa/math
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-02-03 03:18:28 -0800
committerKeith Whitwell <keithw@vmware.com>2010-02-03 11:38:38 +0000
commitdb0eb3a437fbc88429b2d73444335b61035d824f (patch)
treea9fe8047fb81523fe20e4d4a8252bbde5bcc8139 /src/mesa/math
parent9f1ee5a864a3e0ede5aa04d6316e97dc94f01fe8 (diff)
vbo: Fix up in-place splitting for non-contiguous/indexed primitives.
The in-place splitting code wasn't dealing with index buffers at all (and it was being called from vbo_split_prims for too big index buffers, causing some occasional corruption). Additionally, it wasn't taking into account primitives arrays with non-contiguous indices (e.g. given prim[0].start = 0 and prim[1].start = max_verts, it would happily call back the driver with (max_index - min_index) still greater than max_verts, causing infinite recursion). It still doesn't handle too large indexed vertex buffers: use vbo_split_copy for that.
Diffstat (limited to 'src/mesa/math')
0 files changed, 0 insertions, 0 deletions