Lines that disapear.

I draw line like this:
glColor3f(0.0f,0.0f,1.0f);
glBegin( GL_LINES );
glVertex3f( 0.0f, 0.0f, -1.0f );
glVertex3f( 0.0f, 0.0f, 1.0f );
glEnd();
When the lines are alone on the view everything is fine, but when I use:
GLUquadricObj* obj;
obj = gluNewQuadric();

gluSphere(obj,0.5f,16,16);

gluDeleteQuadric(obj);

At the begining everything looks fine, but when I refresh the view (for exemaple:when I move the window), the lines become dark, almost invisble. Does any body know why?

Really not enought information for us to go on, could be lot’s of things.
Post your display code so we can take a look!
Also you refresh code, could be something in there.

Originally posted by sela_lerer:
[b]I draw line like this:
glColor3f(0.0f,0.0f,1.0f);
glBegin( GL_LINES );
glVertex3f( 0.0f, 0.0f, -1.0f );
glVertex3f( 0.0f, 0.0f, 1.0f );
glEnd();
When the lines are alone on the view everything is fine, but when I use:
GLUquadricObj* obj;
obj = gluNewQuadric();

gluSphere(obj,0.5f,16,16);

gluDeleteQuadric(obj);
At the begining everything looks fine, but when I refresh the view (for exemaple:when I move the window), the lines become dark, almost invisble. Does any body know why?[/b]

[This message has been edited by nexusone (edited 05-11-2003).]