I’m getting this error message when I turn lighting on. I’m having trouble finding what the cause is of the error message. It doesn’t seem to effect the performance of my code, but I’d like to fix it anyhow. Any clues as to what may be causing this?
try to track the exact position when the error pops up the first time -> check after each relevant call with glGetError and than look into the manual what is said about errors on glEnable(GL_LIGHTING) …
or post some code
Originally posted by bismuti@boeing:
[b]I’m getting this error message when I turn lighting on. I’m having trouble finding what the cause is of the error message. It doesn’t seem to effect the performance of my code, but I’d like to fix it anyhow. Any clues as to what may be causing this?
Thanks[/b]
The problem with the GL constants is that they are not typesafe and can be (ab)used in many ways, for example one could write:
glEnable(GL_RGB);
This will compile just fine, but of course is completly bogus and will result in a invalid enumerant error at runtime.