gldrawarrays corruption

Member
Posts: 117
Joined: 2010.09
Post: #1
Hi all,

I've read many threads on this.
But can't work out what (if anything) can(maybe!) get corrupted once this call has gone through.
You could arguably set all states back to your 'default' after doing the arraydraw but that could be very wasteful.

Cheers
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Is there a question here?
Quote this message in a reply
Member
Posts: 117
Joined: 2010.09
Post: #3
Yeah :-)
I'm asking what (if anything) *is* corrupted after a gldrawarray?; because it isn't clear too me.

Cheers
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
"corrupted"?
Quote this message in a reply
Member
Posts: 23
Joined: 2010.08
Post: #5
Are you referring to client data (your data) or server state (GL state)?

The GL state for active attributes (eg. glColor()) is undefined after calling glDrawArrays(). You will need to reset the value of glColor() if you later choose to draw an object with glDisableClientState(GL_COLOR_ARRAY).

As for your own data, glDrawArrays() does not modify any client data. If you experience crashes or similar problems when calling glDrawArrays() you have a bug in your code. Your either passing OpenGL bad data or overwriting the data yourself.

The Monkey Hustle - Now available on the App Store!
Quote this message in a reply
Member
Posts: 117
Joined: 2010.09
Post: #6
Ahhhhh, I see!
Thanks; that's useful to know

Cheers
Quote this message in a reply
Post Reply