sphere problem

i’m doing an opengl program where i draw a sphere, the problem is that when i zoom out , another sphere appears inside the first one…

thank you

i look forward for an answer

Pedro Silva

Chances are it has something to do with unmatched push/pop matrix pairs, unmatched glBegin/glEnd pairs, or a random bug in your code.

Are you clearing the colour and depth buffers?