renderer: add base instance support for instanced arrays

fixes: arb_base_instance-drawarrays
macos/master
Dave Airlie 10 years ago
parent c6dc6acf27
commit 7710274294
  1. 2
      src/vrend_renderer.c

@ -2387,6 +2387,8 @@ void vrend_draw_vbo(struct vrend_context *ctx,
GLenum mode = info->mode;
if (info->instance_count <= 1)
glDrawArrays(mode, info->start, info->count);
else if (info->start_instance)
glDrawArraysInstancedBaseInstance(mode, info->start, info->count, info->instance_count, info->start_instance);
else
glDrawArraysInstancedARB(mode, info->start, info->count, info->instance_count);
} else {

Loading…
Cancel
Save