I had a quick look through the code for glutSolidSphere (from
glut_shapes.c) and have included some relevant bits at the end.
Thank you. That explains it. I didn't call glutInit(), as I'm
implementing my own sub-class of NSOpenGLView, but that causes the
function to create a new quadric object every time. They could of
course have added a delete operation afterwards (in case
__glutCurrentView == NULL), but they didn't think of that while fixing
bug #2742838 or decided that would be an unnecessary call...
And also thanks for pointing out the source code: it's very instructive!
Theo Vosse
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden