Debugging tip in Minefield

I spent a bit of time trying to track this one down… If, when you’re calling drawArrays, you get an error message in your console like this:

No VBO bound to index 1 (or it’s been deleted)!

…Minefield is trying to tell you that you’ve forgotten to bind an array buffer to one of your attributes — specifically, to the one that the shader compilation has assigned the index 1. A better error message might be “No VBO bound to attribute with index 1 (or it’s been deleted)!”, but never mind.

You can leave a response, or trackback from your own site.

Leave a Reply

Subscribe to RSS Feed Follow Learning WebGL on Twitter