# Cost of calling glBindBuffer

**URL:** <https://forums.imgtec.com/t/cost-of-calling-glbindbuffer/396>\
**Category:** PowerVR Insider\
**Created:** [July 1, 2009, 10:51am UTC](https://forums.imgtec.com/t/cost-of-calling-glbindbuffer/396 "2009-07-01T10:51:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![richarduk](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@richarduk](https://forums.imgtec.com/u/richarduk)\
**Post date:** [July 1, 2009, 10:51am UTC](https://forums.imgtec.com/t/cost-of-calling-glbindbuffer/396/1 "2009-07-01T10:51:37Z")

</div>

Does it just set an internal variable to the passed buffer or does it have to do much more?

---

<div class="post-metadata">

**Author:** ![xmas](https://avatars.discourse-cdn.com/v4/letter/x/958977/32.png) [@xmas](https://forums.imgtec.com/u/xmas)\
**Post date:** [July 1, 2009, 12:23pm UTC](https://forums.imgtec.com/t/cost-of-calling-glbindbuffer/396/2 "2009-07-01T12:23:37Z")

</div>

Every GL call does slightly more, i.e. first getting a reference to the context that is current to the thread, then some error checking based on the arguments. But apart from that, glBindBuffer should have a small cost.

---

<div class="post-metadata">

**Author:** ![richarduk](https://avatars.discourse-cdn.com/v4/letter/r/6de8d8/32.png) [@richarduk](https://forums.imgtec.com/u/richarduk)\
**Post date:** [July 1, 2009, 1:42pm UTC](https://forums.imgtec.com/t/cost-of-calling-glbindbuffer/396/3 "2009-07-01T13:42:20Z")

</div>

Is this different for index buffers? As it seems for this all you have to do is bind it.
