the flash problem of Antialiased line in Enable Depth Test 3D Scene!

hello, everyone.My nut is when I wanna draw some 3D lines in a 3D filled surface,and enable depth test together by using code glEnable(GL_DEPTH_TEST).Then I found the lines always flashed when I rotated the total subject(the surface and the lines).In addition, I used Antialiased lines in my coding.
How can I solve this flashed problem??

Polygon offset. Look it up in the FAQ, which can be found on the front page of opengl.org.