apitrace/apitrace — pull request #132 by stroyan (2013-05-28 23:25:54+00:00)
Title: Fix defineShadowBufferHelper for buffer objects

Traces for glDrawElements with a buffer object for indices were getting the wrong index range because the glGetIntegerv query used the wrong pname.

Use GL_ELEMENT_ARRAY_BUFFER_BINDING instead of GL_ELEMENT_ARRAY_BUFFER
to inquire the current buffer object in _shadow_glGetBufferSubData.