summaryrefslogtreecommitdiff
path: root/src/mesa/vbo/vbo_exec_api.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-09-21 14:23:07 -0600
committerBrian Paul <brianp@vmware.com>2009-09-21 14:56:58 -0600
commit40603526f478a59b89a4c0a07c75a97dfe56b8c3 (patch)
treece8989ec55653083ad6bda1b8829600e078b9aaf /src/mesa/vbo/vbo_exec_api.c
parente5d29ebb5e5dd923c9c60972170d072120007aab (diff)
mesa: refine the error checking vbo_exec_DrawRangeElements()
If the 'end' index is out of bounds issue a warning as before. But instead of just no-op'ing the draw call, examine the actual array indices to see if they're OK. If the max array index is out of bounds, issue another warning and no-op the draw call. Otherwise, draw normally. This is a debug build-only feature since it could impact performance. This "fixes" the missing torus in the OGL Distilled / Picking demo.
Diffstat (limited to 'src/mesa/vbo/vbo_exec_api.c')
0 files changed, 0 insertions, 0 deletions