开发者

OpenGL ES2 for Android - Weird random juts

开发者 https://www.devze.com 2023-02-07 16:34 出处:网络
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 hap

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

精彩评论

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

关注公众号