+ if (compiled_into_dlist && ctx->GLThread.inside_dlist) {
+ /* Only use the ones that are compiled into display lists. */
+ if (basevertex) {
+ CALL_DrawElementsBaseVertex(ctx->CurrentServerDispatch,
+ (mode, count, type, indices, basevertex));
+ } else if (index_bounds_valid) {
+ CALL_DrawRangeElements(ctx->CurrentServerDispatch,
+ (mode, min_index, max_index, count, type, indices));
+ } else {
+ CALL_DrawElements(ctx->CurrentServerDispatch, (mode, count, type, indices));
+ }
+ } else if (index_bounds_valid && instance_count == 1 && baseinstance == 0) {