I am very confused with this error.
I call a display function once and then check the “result” with
cout << gluErrorString(glGetError()) << endl;
Then I enter selection mode with
then call the same display function and again check the result.
The first time I see “no error”, but the second time I see “invalid operation”. I’ve been told you can’t use glGetError() inside glBegin() glEnd() pairs, so I can’t really check anything else in between. How can I tell why this error is being generated?