Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glDrawArrays: attempt to access out of range vertices in attribute 0 #8

Open
micha149 opened this issue Nov 9, 2015 · 4 comments
Open

Comments

@micha149
Copy link
Contributor

micha149 commented Nov 9, 2015

When enabling the WebGL Inspector, I get the error glDrawArrays: attempt to access out of range vertices in attribute 0 on my console and nothing will be drawn. I looked a bit around to figure out, where the error comes from and I think its gl-geometry. Maybe the buffer is not initialized with the correct size.

I get the error im my own code and also in the bunny walkthrough example. But only when WebGL Inspector is enabled.

I am totally new to webgl (without three.js) so maybe I am wrong.

@micha149
Copy link
Contributor Author

@hughsk @mikolalysenko @mattdesl Any Idea whats going wrong? When I use a geometry without faces to render points, the error did not occur…

@mattdesl
Copy link
Member

I will test today to see if I can reproduce 👌

@hughsk
Copy link
Member

hughsk commented Jan 17, 2016

I'm not sure what the cause of this is yet but it's something going on in WebGL Inspector's instrumentation code messing things up... Ran into this today too. fwiw, a temporary workaround would be to unindex your mesh before sending it into gl-geometry :)

@oparisy
Copy link
Contributor

oparisy commented Jan 17, 2016

Maybe you'd like to file a bug to WebGL Inspector then, @micha149?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants