a sphere becomes a football

Hi,

I draw a sphere using gluSphere() but it looks like a football if I change the width (or height) of the window. I did catch the window size changed event and recall glViewport() to reset the view port. Is there anything else I should do? Your help is appreciated.

Tony

You must also adjust your projection matrix.