summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-02-08 05:08:24 -0800
committerIan Romanick <ian.d.romanick@intel.com>2012-05-17 21:29:05 -0700
commitb85c5d9344eb19f7012c0906aaff2c2cd11f83ba (patch)
treee7b651e82d118a5ba441ee8f310472d7ddc127b2
parenteb2eb97bafc13e3786f995fcac1dbca791b86003 (diff)
vbo: Eliminate short-circuiting in invalid-start case.
Now that we have a index_range_invalid flag, we can just use that rather than calling vbo_validated_drawrangeelements directly and returning. NOTE: This is a candidate for release branches. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 6e738d35c5c88769ececbadd5f4ac14d36647168)
-rw-r--r--src/mesa/vbo/vbo_exec_array.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index dcaaefc221..9cefe74dd8 100644
--- a/src/mesa/vbo/vbo_exec_array.c
+++ b/src/mesa/vbo/vbo_exec_array.c
@@ -854,11 +854,7 @@ vbo_exec_DrawRangeElementsBaseVertex(GLenum mode,
start, end, basevertex, count, type, indices,
ctx->Array.ArrayObj->_MaxElement - 1);
}
-
- /* Just do an ordinary glDrawElementsBaseVertex(). */
- vbo_validated_drawrangeelements(ctx, mode, GL_FALSE, 0, ~0,
- count, type, indices, basevertex, 1);
- return;
+ index_bounds_valid = GL_FALSE;
}
/* NOTE: It's important that 'end' is a reasonable value.