David Doria
11-23-2008, 07:56 AM
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
glRenderMode(GL_SELECT);
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?
Thanks,
Dave
I call a display function once and then check the "result" with
cout << gluErrorString(glGetError()) << endl;
Then I enter selection mode with
glRenderMode(GL_SELECT);
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?
Thanks,
Dave