oxenos
2003.04.16, 12:33 PM
Hi all!
I'm experiencing a strange behaviour of glGetError(): if I call it just after ANY glBegin() statement I get a 0x0502 error code. It doesn't matter in which conditions, how I create the GL context or any other GL state (matrixes, materials, etc), I get the error ONLY after glBegin(). The surprising thing is that it happens with both my iMac and iBook, both with MacOS classic (9.1 and 9.2) and MacOS X (10.2.1). Even more surprising, if I chack for the error AFTER the glEnd() statement no error is reported at all, I get an error ONLY if I check it after glBegin() - and it happens on SGI glut demos too, so I think it's not my code's fault.
Is it a bug in Apple's OpenGL implementation? Is it normal behaviour? Does it happen on your hardware too?
thanx in advance to whoever will be so kind to answer to me for his/her time.
--
The Alien
I'm experiencing a strange behaviour of glGetError(): if I call it just after ANY glBegin() statement I get a 0x0502 error code. It doesn't matter in which conditions, how I create the GL context or any other GL state (matrixes, materials, etc), I get the error ONLY after glBegin(). The surprising thing is that it happens with both my iMac and iBook, both with MacOS classic (9.1 and 9.2) and MacOS X (10.2.1). Even more surprising, if I chack for the error AFTER the glEnd() statement no error is reported at all, I get an error ONLY if I check it after glBegin() - and it happens on SGI glut demos too, so I think it's not my code's fault.
Is it a bug in Apple's OpenGL implementation? Is it normal behaviour? Does it happen on your hardware too?
thanx in advance to whoever will be so kind to answer to me for his/her time.
--
The Alien