glutSolidTeapot messes with my modelview matrix!

Hello!

when I put this line somewhere in my code:

new GLUT().glutSolidTeapot(20.0, false);

I find that every object I draw afterwards, is scaled. I assume by a factor of twenty. This suggests that the glutSolidTeapot() function does not correctly push/pops the modelview matrix. Or am I making a newbie mistake?
If I surround the code with a push and a pop, everything works as expected:

gl.glPushMatrix();
new GLUT().glutSolidTeapot(20.0, false);
gl.glPopMatrix();

Thanks for reporting this. It’s related to the new “non-backward compatible” teapot mode – the fully backward-compatible mode did the matrix push/pop correctly. I’ve checked in a fix which will show up in the nightly builds dated 7/1 or later. Please post if you see any more problems in this area.

Thanks for the quick reply :smiley:
At least now I know it’s got nothing to do with me.