OpenGL ES2 for Android - Weird random juts
I'm just starting to learn OpenGL ES2 for Android, and have come across a wei开发者_运维问答rd problem where sometimes a weird jut will be rendered from my objects (see pic). This doesn't always happen, which is strange, so I'm wondering if anyone has any experience with this sort of thing and how to fix it.
http://img717.imageshack.us/i/device2h.png/
The problem here was that I was calling GLES20.glDrawArrays(type, first, count) with an incorrect count. Setting the variable correctly fixed it.
精彩评论