a sphere becomes a football


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.


You must also adjust your projection matrix.