开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜