PDA

View Full Version : glGetError Always Returns GL_INVALID_OPERATION



masnu
07-08-2009, 12:58 PM
Hello,

Every time I call glGetError() it returns GL_INVALID_OPERATION. Even before any OpenGL functions are called it still returns the same value. I have checked my drivers and they are all up to date. Anything else I should look at?

Thanks.

dletozeun
07-08-2009, 01:22 PM
Are you sure that the opengl rendering context is properly created? Show us how you create and initialize you opengl program.

scratt
07-08-2009, 07:39 PM
What dletozeun said. You most likely don't have a valid OpenGL context.