What is common cause of range out of bounds of buffer in WebGL
问题 I'm engaging in a webgl project. When I call gl.DrawElements, the error 'range out of bounds of buffer' is shown. I surely ensured that I passed correct length or offset of buffer. But, still the error is showing. I think there is several cause that could raise the error. Therefore,I want to ask if you had same problem in your project, what you check for fix this problem? 回答1: There are only 3 reasons you'd get that error when calling gl.drawElements Your indices are referencing vertices out