Checking for vertex arrays

Started by jClardy, December 31, 2004, 05:38:59

Previous topic - Next topic

jClardy

Is there any way to check if a card supports vertex arrays?

I would like to know because I just tried to run my VA code on my laptop, and it gave an opengl Invalid Operation where I enabled GL_VERTEX_ARRAY. It would be nice to have my game switch down to immediate mode if vertex arrays aren't supported...

princec

All cards support vertex arrays. It's a core GL1.1 feature.

Cas :)

jClardy

Hmm...Then why would I get the illegal operation on the laptop? Could it be driver issues? It says that it has opengl 1.3. I'll go check right now.

tomb

I think you get an illegal operation when you use the wrong parameters to functions, do something inside a begin/end block etc. So the error your seeing is probably caused by a bug in your code, and not because your laptop don't support vertex arrays.

jClardy

I said the wrong error, it was actually an invalid enum (1280). But I fixed it now, the problem was that I was using glEnable for GL_VERTEX_ARRAYS instead of glEnableClientState. So its fixed  :)