PDA

View Full Version : error 1280 with glGetError()



mithun_daa
11-26-2003, 12:02 PM
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.

Bob
11-26-2003, 01:23 PM
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).]

mithun_daa
11-26-2003, 01:29 PM
Originally posted by Bob:
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).]

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.

Mazy
11-26-2003, 01:43 PM
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..