So, in the middle of my code I invoke:
gl.drawArrays(381,3,0);
gl.getError();
And the getError() call returns 0.
What may cause this weird behavior?
Edit: I am using chromium
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because it’s not an error. You are telling it to draw 0 elements starting at vertex 3 (your geometry type, 381, may or may not be valid but I doubt it’s checking that just yet.)
I would imagine that internally it looks at your request to draw 0 elements and says… “Okay, done! I drew nothing, just like you asked!” and then moves on. Seems like a logical place to early terminate.
Try calling something really weird like this, see if it gives you an error then: