error 1280 with glGetError()

i dont know whatz wrong but everywher i put the code
intI = glGetError()
i get the value 1280 which is : GL_INVALID_ENUM.
even when i put it at the begining of the initialization routine.

I bet you don’t have an active rendering context.

edit: Or maybe that’s not it. If it was GL_INVALID_OPERATION, it would be more likely a missing RC. But check the RC anyway.

[This message has been edited by Bob (edited 11-26-2003).]

Originally posted by Bob:
[b]I bet you don’t have an active rendering context.

edit: Or maybe that’s not it. If it was GL_INVALID_OPERATION, it would be more likely a missing RC. But check the RC anyway.

[This message has been edited by Bob (edited 11-26-2003).][/b]

my RC and my DC are both active. im able to draw anything i want. its just that when im applying textures that im not able to c the texture mapping. that is when i thought i’ll get the error value and i found that the value 1280 is being returned everytime.

*** im using VB6.

you should find out WHEN your getting that error… glGetError Clears the error buffer so

glGetError();
the suspectedcode;
res=glGetError();
check res…

and narrow it down…