I'm trying to render a gluNurbsSurface (with texture mapped on ).
I gluLookAt it from different viewing angles;
it works fine from less oblique angles, but at one particular oblique angle
the whole thing crashes and I get the following error message:
X Error of failed request: BadRequest
(invalid request code or no such operation)
Major opcode of failed request: 0 ()
Serial number of failed request: 54
Current serial number in output stream: 53
1) Can someone help me trap this message?
I'm using the aux/tk library to do all the windowing.
I've used the glGetError function and I get "no error".
but I don't know whether I'm using the function in the right place -
I've tried calling it in "display", both immediately before and
immediately after the gluBeginSurface/gluEndSurface pair.
2) I'm also having trouble using the gluNurbCallBack routine.
How should I specify the fn parameter?