glGetError Always Returns GL_INVALID_OPERATION


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?


Are you sure that the opengl rendering context is properly created? Show us how you create and initialize you opengl program.

What dletozeun said. You most likely don’t have a valid OpenGL context.