Don't step out of the extension array bounds to prevent triggering a GL_INVALID_VALUE.
Merge pull request #13 from adrianbroher/master

Don't step out of the extension array bounds to prevent triggering a GL_INVALID_VALUE.